from math import sqrt,pi,sin,cos,ceil x,y,r=list(map(int,input().split())) theta=pi/4 d=sum(map(abs,[x,y,r*sin(theta),r*cos(theta)])) print(ceil(d))