#include<iostream> using namespace std; int main(){ int r1,r2; cin>>r1>>r2; cout<<(int)((r1*r1*3.14)-(r2*r2*3.14); return 0; }