import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
double R = sc.nextDouble();
double V = sc.nextDouble();
while((R>1000)||(R<1))
{
R= sc.nextDouble();
}
while((V>1000)||(V<1))
{
V=sc.nextDouble();
}
double A = (int)(R*R*3.14159*10) / 10.0;
double B = (int)(R*R*3.14159*V*10)/10.0;
System.out.printf("%.1f\n%.1f", A, B);
}
}