def main(): t = int(input()) mod = 998244353 dp = [0] * 101 dp[0] = 2 for i in range(1, 101): dp[i] = 2 * (sum(dp) + 1) % mod for _ in range(t): n = int(input()) print(dp[n - 1]) if __name__ == "__main__": main()