#include<stdio.h>
#include<math.h>
int main()
{
double a,r,s,b,area;
scanf("%lf %lf",&a,&r);
s=a*a;
b=3.14*r*r;
area=s-b;
printf("%lf",area);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8bWF0aC5oPgppbnQgbWFpbigpCnsKZG91YmxlIGEscixzLGIsYXJlYTsKc2NhbmYoIiVsZiAlbGYiLCZhLCZyKTsKcz1hKmE7CmI9My4xNCpyKnI7CmFyZWE9cy1iOwpwcmludGYoIiVsZiIsYXJlYSk7CnJldHVybiAwOwp9