#include using namespace std; typedef long long ll; const ll inf = 1LL << 60; #define rep(i, b) for(ll i=0; i < b; i++) #define rrep(i, a, b) for(ll i=a; i >= b; i --) #define fore(i, a) for(auto &i:a) #define all(x) (x).begin(),(x).end() #define mod 998244353 int main(){ ll k = 100; vector DP(k + 1); DP[0] = 1; rep(i, k){ rep(j, k - i){ DP[i + j + 1] += DP[i] * 2; DP[i + j + 1] %= mod; } } int t; cin >> t; int n; rep(_, t){ cin >> n; cout << DP[n] << endl; } }