#include using namespace std; using ll=long long; using Vl=vector; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n;cin >>n; Vl G(6*n+1,0); G[0]=1; for (int j = 0; j < 8; ++j) { auto ng = G; for (int i =n+1; i <=6*n;++i) { G[i]=ng[i]-ng[i-(n+1)]; } for (int i = 1; i <=6*n; ++i) { G[i]+=G[i-1]; } } cout <