import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np N = int(read()) x = np.ones(N+1,np.int64) y = x.copy() for _ in range(7): y = np.convolve(x,y) answer = y[6*N] print(answer)