import math

x, y, r = map(int,input().split())

res = int(math.ceil(abs(x) + abs(y) + math.sqrt(2) * r))

print(res)