import math x, y, r = map(int, input().split()) d = abs(x) + abs(y) + math.sqrt(2*pow(r,2)) + 1 print(int(d))