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