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