#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;
}