#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> Q; while(Q--){ ll N; cin >> N; ll x=5*R[N]*R[N]%MOD; ll y=E[N]*E[N]%MOD; cout << (x-y+MOD)%MOD << '\n'; } return 0; }