c = gets.to_i i, o = gets.split.map(&:to_i) r1 = (o - i) / 2.0 r2 = i + r1 volume = (Math::PI ** 2) * (r1 ** 2) * 2 * r2 puts volume * c