#include using namespace std; int T,N,M; main() { cin>>T; for(;T--;) { cin>>N>>M; if(N%2!=0||M%2!=0) { cout<<-1<0;i-=2) { cout<