import java.io.*;
import java.lang.Math;
abstract class Area {
public abstract double area();
}
class RectArea extends Area{
double x,y;
public double area() {
double s1;
s1=x*y;
System.out.println("s1="+s1);
return s1;
}
}
class RoundArea extends Area{
double z;
public double area(){
double s2;
s2=Math.PI*z*z;
System.out.println("s2="+s2);
return s2;
}
}
public class Test{
public static void main(String args[]){
RectArea f1=new RectArea();
RoundArea f2=new RoundArea();
double x,y,z;
try{
BufferedReader in= new BufferedReader(new InputStreamReader(System.in));
x=Long.parseLong(in.readLine());
y=Long.parseLong(in.readLine());
z=Long.parseLong(in.readLine());
f1.x = x;
f1.y = y;
f2.z = z; }
catch(Exception e){
System.out.println("error:"+e.toString());
}
f1.area();
f2.area();
}
}