MOD = 998_244_353 T = gets.to_i dp = Array.new(110, 0) dp[1] = 2 rui = 2 2.upto(100) do |i| dp[i] = 2 + 2 * rui rui += dp[i] dp[i] %= MOD rui %= MOD end T.times do n = gets.to_i puts dp[n] end