#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for (int i=0;i<(n);i++) #define RREP(i,n) for (int i=(n)-1;i>=0;i--) #define inf 0x3f3f3f3f #define uinf 0x3f3f3f3f3f3f3f3f #define CLEAR(a) a = decltype(a)() #define MP make_pair #define ALL(a) (a).begin(),(a).end() #define pii pair #define pcc pair #define pic pair #define pci pair #define VS vector #define VI vector #define VVI vector> #define DEBUG(x) cout<<#x<<": "<> N; memset(dp, 0, sizeof(dp)); dp[0][0] = 1; REP(i, 8) REP(j, 6 * N + 1) REP(k, N + 1) { dp[i + 1][j + k] += dp[i][j]; } cout << dp[8][6 * N] << endl; return 0; }