MOD = 998244353 inv = pow(25, -1, MOD) for _ in range(int(input())): n = int(input()) ans = (pow(26, n + 1, MOD) - 1) * inv % MOD print(ans - 1)