import math x, y, r = map(abs, map(int, input().split())) print(x + y + max(r, int(r / math.sqrt(2) * 2)) + 1)