c=gets.to_i a, b=gets.split.map(&:to_i) r=(b-a)*0.5 s=Math::PI*r*r p c*s*2*(a+r)*Math::PI