include Math n=gets.to_i l=(0..n+1).map{gets.to_f} k=l[0] f=->(r,s){r-s>k ?PI*s*s:s-r>k ?PI*r*r:r+s