#include #include using namespace std; #define int long long const int I = 998244353; signed main(){ int q; cin >> q; vector r(200009),e(200009); r[1] = 1,r[2] = 1; for(int i = 3;i <= 200000;i++){ r[i] = r[i - 1] + r[i - 2];r[i] %= I;} e[1] = 1,e[2] = 3; for(int i = 3;i <= 200000;i++) {e[i] = e[i - 1] + e[i - 2];e[i] %= I;} for(int i = 0;i < q;i++){ int k; cin >> k; int K = (5*r[k] * r[k] - e[k]*e[k] + I) % I; if(K < 0) K += I; cout << K << endl; } }