MOD = 998244353 T = gets.to_i m = 26 * 25.pow(MOD - 2, MOD) % MOD T.times do l = gets.to_i puts m * (26.pow(l, MOD) - 1) % MOD end