def solve(n): dp = [[0 for j in range(6 * n + 1)] for i in range(9)] dp[0][0] = 1 for i in range(8): for j in range(6 * n + 1): for k in range(n + 1): if j + k <= 6 * n: dp[i+1][j+k] += dp[i][j] return dp[8][6 * n] def main(): n = int(input()) print(solve(n)) if __name__ == '__main__': main()