from math import comb MOD = 998244353 N = int(input()) a = comb(N, 4) % MOD b = pow(26, N-4, MOD) ans = a * b % MOD print(ans)