import math v = map(int, raw_input().split()) print int(math.ceil(math.fabs(v[0]) + math.fabs(v[1]) + math.sqrt(2) * v[2]))