#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<3.14*a*a-3.14*b*b; return 0; }