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