N = int(input()) ans = 0 for x in range(N + 1): for y in range(N + 1): if 0 <= N - x - y: ans += 1 print(ans)