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