h, r = gets.split.map(&:to_f) puts -8.245 + 6.807 * h + 7.073 * r * 2 * Math::PI