#include using namespace std; using ll = long long; const ll MOD = 998244353; const string T = "mole"; int main() { int N; cin >> N; int L = T.size(); vector dp(L + 1, 0); dp[0] = 1; for (int i = 0; i < N; i++) { vector ndp(L + 1, 0); for (int j = 0; j <= L; j++) { ndp[j] = 26 * dp[j] % MOD; } for (int j = 0; j < L; j++) { ndp[j + 1] = (ndp[j + 1] + dp[j]) % MOD; } dp = ndp; } cout << dp[L] << '\n'; return 0; }