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