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