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