mod = 998244353 v = pow(25, mod - 2, mod) for _ in range(int(input())): L = int(input()) print((pow(26, L, mod) - 1) * v * 26 % mod)