import math x, y, r = list(map(int, input().split())) print(math.ceil(math.hypot(math.hypot(x, y) + r, math.hypot(x, y) + r)))