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