def f(a) 2 * Math::PI * a end a = gets.to_f b = gets.to_f puts 4 * Math::PI - f(a + 1) - f(1 - b)