import math x, y, r = list(map(int, input().split())) root2 = 1.414 print(math.ceil(r * root2) + abs(x) + abs(y))