#include <iostream>
#include <cmath>
using namespace std;
int main() {
double R, r;
cin>>R>>r;
cout<<R*R*M_PI-r*r*M_PI<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+IAp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKCWRvdWJsZSBSLCByOwoJY2luPj5SPj5yOwoJY291dDw8UipSKk1fUEktcipyKk1fUEk8PGVuZGw7CglyZXR1cm4gMDsKfQ==