import java.util.*;
public class Main {
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.0);
V=(float)(Math.floor(10.0*V)/10.0);
System.out.println(A);
System.out.println(V);
}
}