x, y, r = map(int, input().split()) from math import fabs, ceil, sqrt print(int(fabs(x)+fabs(y)+ceil(r*sqrt(2))))