c=gets.to_i;a,b=gets.split.map &:to_i c,a,b=$<.read.split.map &:to_i d=Math::PI p c*(a-b)**2*d*d*(a+b)/4