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