import math x, y, r = map(int, input().split()) ans = abs(x) + abs(y) + math.ceil(1.414 * r) print(ans)