R = Math.sqrt(2) x,y,r = gets.split.map(&:to_i).map(&:abs) puts (x + y + r * R).ceil