def solve(n):
	ans=0
	for a in range(n+1):
		for b in range(n+1):
			if a+b>n:
				break
			for c in range(n+1):
				if n-(a+b+c)>=0:
					ans+=1
				else:
					break
	return ans


while True:
	try:
		n=int(input())
		print(solve(n))
	except EOFError:
		break