MOD = 998244353 t = int(input()) while t: t -= 1 n = int(input()) ans = (pow(26, n+1, MOD) - 1) * pow(25, MOD-2, MOD) - 1 ans %= MOD print(ans)