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