SIN_45 = 0.707106781 X, Y, R = gets.split.map(&:to_i) max_circumference = R * SIN_45 * 2 puts (X.abs + Y.abs + max_circumference).ceil