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