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