# coding: utf-8

def nCr(n, r):
    ret = 1
    for i in xrange(r):
        ret *= (n-i)
        ret /= (i+1)
    return ret

A = []
while True:
    sA = raw_input()
    if not sA:
        break
    A.append( int(sA) )

for i in xrange( len(A) ):
    print nCr( A[i]+3, 3 )