public static void main(String[] args) {
Scanner in=new Scanner(System.in);
float R, L;
float A, V;
R=in.nextFloat();
L=in.nextFloat();
A= (float) (R*R*3.14159);
V=A*L;
A=(float)Math.floor(10.0*A)/10;
V=(float)Math.floor(10.0*V)/10;
System.out.printf("%.1f\n",A);
System.out.printf("%.1f\n",V);
}
}