MOD = 998244353 T = int(input()) for _ in range(T): L = int(input()) ans = (26 * (pow(26, L, MOD * 25) - 1)) // 25 % MOD print(ans)