I=input P=998244353 for t in[0]*int(I()):print(319438194*~-pow(26,int(I()),P)%P)