#include using namespace std; int t,n,ans; int main(){ cin>>t; for(int i=1;i<=t;i++){ cin>>n; if(n==1||n==2){ cout<<"-1"<