#include<stdio.h>
#define PI 3.14159
int main()
{
float r = 0, h = 0;
scanf("%f %f", &r, &h);
printf("%.2f", 2 * PI * r * r + 2 * PI * r * h);
return 0;
}
#include<stdio.h>
#define PI 3.14159
int main()
{
float r = 0, h = 0;
scanf("%f %f", &r, &h);
printf("%.2f", 2 * PI * r * r + 2 * PI * r * h);
return 0;
}