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