import math x, y, r = [int(x) for x in input().split()] res = math.ceil(abs(x) + abs(y) + r * math.sqrt(2)) print(int(res))