x, y, r = map(int, input().split()) d = abs(x) + abs(y) + 2 ** 0.5 + r print(int(d) + 1)