# No.172 UFOを捕まえろ import math x, y, r = [int(i) for i in input().split()] print(abs(x) + abs(y) + math.ceil(2 ** 0.5 * r))