import math x, y, r = map(int, input().split()) R = abs(x) + abs(y) + 2**0.5*r print(math.ceil(R))