#include <bits/stdc++.h>
using namespace std;
string f(string a , int n , int x , int m) {
if(x == n) return a;
if(m > 40) return "-1";
f(a + "1 " , n , (2*x)-1 , m + 1);
f(a + "2 " , n , (2*x)+1 , m + 1);
}
int main() {
int t , n;
cin >> t;
while(t--) {
cin >> n;
if(n % 2 == 0) cout<<"-1";
else {
//string b = f("" , n , 1 , 0);
cout<<"-1"<<" ";
}
cout<<"\n";
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgpzdHJpbmcgZihzdHJpbmcgYSAsIGludCBuICwgaW50IHggLCBpbnQgbSkgewoJaWYoeCA9PSBuKSByZXR1cm4gYTsKCWlmKG0gPiA0MCkgcmV0dXJuICItMSI7CglmKGEgKyAgIjEgIiAsICBuICwgKDIqeCktMSAsIG0gKyAxKTsKCWYoYSArICAiMiAiICwgIG4gLCAoMip4KSsxICwgbSArIDEpOwp9CgppbnQgbWFpbigpIHsKCWludCB0ICwgbjsKCWNpbiA+PiB0OwoJd2hpbGUodC0tKSB7CgkJY2luID4+IG47CgkJaWYobiAlIDIgPT0gMCkgY291dDw8Ii0xIjsKCQllbHNlIHsKCQkJLy9zdHJpbmcgYiA9IGYoIiIgLCBuICwgMSAsIDApOwoJCQljb3V0PDwiLTEiPDwiICI7CgkJfQoJCWNvdXQ8PCJcbiI7Cgl9CgkKCXJldHVybiAwOwp9