import math x, y, r = map(int, raw_input().split()) print x + y + int(math.ceil(r/(math.sqrt(2)/2) + 1e-9))