public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
double radius = input.nextDouble();
double length = input.nextDouble();
double area = radius * radius * 3.14159;
double volume = area * length;
System.out.printf("%.1f\n", (int) (area * 10) / 10.0);
System.out.printf("%.1f\n", (int) (volume * 10) / 10.0);
}
}