#include using namespace std; #define modulo 10000000 #define mod(mod_x) ((((long long)mod_x+modulo))%modulo) #define Inf 100000000 int main(){ int Q; cin>>Q; for(int i=0;i>A>>B>>C; if(C==1){ cout<<-1<