class Yukicoder def initialize x, y, r = gets.chomp.split(' ').map(&:to_i) d = Math.sqrt(x * x + y * y) + r puts (2 * d / Math.sqrt(2)).ceil end end Yukicoder.new