x, y, r = map(int, input().split()) for a in range(2 * r + 1): d = abs(x) + abs(y) + a if d > abs(x) + abs(y) + r * 2 ** 0.5: print(d) break