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