#include #include #include #include #include #include #include #define rep(i, n) for (int i = 0; i < (n); i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) using namespace std; typedef long long int lli; lli MOD = 1000000007; int main() { int n; cin >> n; lli dp[10][1000] = {}; rep(i, n + 1) dp[0][i] = 1; //dp[i][j] := i番目までの数字でjを作ることが出来る個数 //dp[i+1][j+k] += dp[i][j](k=0..100) rep(j, 7) { for (int i = 0; i <= 6 * n; i++) { rep(k, n + 1) { dp[j + 1][i + k] += dp[j][i]; } } } cout << dp[7][6 * n] << endl; }