#include main(){double R=50000,x=R,y,s=0;for(;x;x--)for(y=R;y+1;y--){if(x*x+y*y<=R*R)s+=4;}printf("%.7f\n",s/R/R);return 0;}