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