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