#include #include #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep2(i,m,n) for(int (i)=(m);(i)<(n);(i)++) #define rep2ll(i,m,n) for(ll (i)=(m);(i)<(n);(i)++) #define ALL(obj) (obj).begin(), (obj).end() #define rALL(obj) (obj).rbegin(), (obj).rend() using namespace std; using ll = long long; using P = pair; using mint = atcoder::modint998244353; using VL = vector; using VVL = vector; using VVVL = vector; using VM = vector; using VVM = vector; using VVVM = vector; using VD = vector; using VVD = vector; using VVVD = vector; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b>q; VM r(200001), e(200001); r[0] = 0, r[1] = 1, e[0] = 2, e[1] = 1; rep2(i,2,200001){ r[i] = r[i-1] + r[i-2]; e[i] = e[i-1] + e[i-2]; } while(q--){ ll n; cin>>n; mint R = r[n], E = e[n]; cout<<(5*R*R-E*E).val()<<'\n'; } return 0; }