import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double R;
R = sc.nextDouble();
while (R<1 || R>1000) R = sc.nextDouble();
double L;
L = sc.nextDouble();
while (L<1 || L>1000) L = sc.nextDouble();
double A = R * R * 3.14159d;
double V = A * L;
System.out.println(Math.floor(A * 10d) / 10d);
System.out.println(Math.floor(V * 10d) / 10d);
}
}