//https://ncode.syosetu.com/n4830bu/287/ #include using namespace std; using ll = long long; int main() { ll N; cin >> N; vector maine(N * 2 + 1); maine[0] = 1; for (int _ = 0; _ < 8; _++) { vector book(N * 2 + 1); for (int i = 0; i <= N * 2; i++) { for (int j = 0; j <= N; j++) { if (i + j > N * 2) break; book[i + j] += maine[i]; } } swap(maine, book); } cout << maine[N * 2] << endl; }