t = int(input()) mod = 998244353 for _ in range(t): n = int(input()) ans = ((pow(26, n, mod)-1) * 26 * 319438193)%mod print(ans)