#include using namespace std; const long long MOD = 998244353; int main(){ int T; cin >> T; for (int i = 0; i < T; i++){ int N; cin >> N; vector dp(N * 4 + 1, 0); dp[0] = 1; for (int j = 0; j <= N * 4; j++){ for (int k = 4; j + k <= N * 4; k += 4){ dp[j + k] += dp[j] * 2; dp[j + k] %= MOD; } } cout << dp[N * 4] << endl; } }