import sys sys.stdin = open("stdin.txt") input = sys.stdin.readline N = int(input()) ans = 0 for x in range(N + 1): for y in range(N + 1): z = N - x - y if z >= 0: ans += 1 print(ans)