#include <stdio.h>
#pragma warning (disable:4996)
int main()
{
float r, l;
scanf("%f", &r);
scanf("%f", &l);
float a, v;
a = r * r * 3.14159;
v = a * l;
a = a * 10;
v = v * 10;
int c, d;
c = a;
d = v;
a = c;
v = d;
a = a / 10;
v = v / 10;
printf("%.1f\n%.1f\n", a, v);
}
ㅠㅠ