import sys input = sys.stdin.readline mod = 998244353 inv = pow(25, mod - 2, mod) T = int(input()) for i in range(T): N = int(input()) print((pow(26, N + 1, mod) - 26) * inv % mod)