#include #include #define rep(i,n) for(int i=0;i vi; typedef vector vl; typedef vector> vvi; typedef vector> vvl; typedef long double ld; typedef pair P; ostream& operator<<(ostream& os, const modint& a) {os << a.val(); return os;} template ostream& operator<<(ostream& os, const static_modint& a) {os << a.val(); return os;} template istream& operator>>(istream& is, vector& v){int n = v.size(); assert(n > 0); rep(i, n) is >> v[i]; return is;} template ostream& operator<<(ostream& os, const pair& p){os << p.first << ' ' << p.second; return os;} template ostream& operator<<(ostream& os, const vector& v){int n = v.size(); rep(i, n) os << v[i] << (i == n - 1 ? "\n" : " "); return os;} template ostream& operator<<(ostream& os, const vector>& v){int n = v.size(); rep(i, n) os << v[i] << (i == n - 1 ? "\n" : ""); return os;} using mint = modint998244353; const int M = 200000; int main(){ int t; cin >> t; vector r(M); vector e(M); r[0] = 1; r[1] = 1; e[0] = 1; e[1] = 3; auto f = [&](vector& a){ for(int x = 2; x < M; x++){ a[x] = a[x - 1] + a[x - 2]; } }; f(r); f(e); rep(i, t){ int n; cin >> n; n--; cout << 5 * r[n] * r[n] - e[n] * e[n] << "\n"; } return 0; }