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