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