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