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