import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); int t=Integer.parseInt(bu.readLine()); while(t-->0) { int n=Integer.parseInt(bu.readLine()); long M=998244353,ans=power(26,n/2,M)*(26+(n-1)*25)%M; ans=(ans-power(26,(n+1)/2,M)+M)%M; if(n%2==0) ans=ans-(power(26,n/2,M)-1+M)*26%M; ans=(ans+M)%M; sb.append(ans+"\n"); } System.out.print(sb); } static long power(long a,long b,long M) { long res=1; while(b!=0) { if(b%2==1) res=res*a%M; b>>=1; a=a*a%M; } return res; } }