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