def solve(n):
	ans=0
	for a in range(int(n/4)+1):
		for b in range(a,int(n/3)+1):
			for c in range(b,int(n/2)+1):
				for d in range(c,n+1):
					if a+b+c+d==n:
						if a==b==c==d:
							ans+=1
						elif a==b==c or b==c==d:
							ans+=4
						elif a==b and c==d:
							ans+=6
						elif (a==b and c!=d) or (b==c) or (a!=b and c==d):
							ans+=12
						else:
							ans+=24
	return ans 


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