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