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