x,y,r=map(int,input().split()) x,y,i=abs(x),abs(y),0 if x>y: x,y=y,x while i<=x*2+r*(2**0.5):i+=1 print(i+y-x)