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