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