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