import math a, b, c = map(int, input().split()) print(int(abs(a) + abs(b) + math.ceil(c * math.sqrt(2))))