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