#include using namespace std; #include using namespace atcoder; #define rep(i,n) for (int i = 0; i < (n); ++i) using ll = long long; int main() { int N; cin >> N; vector g(6*N+1), f(6*N+1); rep(i,N+1) g[i] = 1; f[0] = 1; rep(k,8) { f = convolution_ll(f,g); f.resize(6*N+1); } cout << f[6*N] << endl; }