#include #define debug(x) cerr<<"\tDEBUG: "<<#x<<" = "<<(x)<>QuQ; while(QuQ--){ cin>>a>>b; clear(); if(a==1&&b==1){ cout<<-1<<" "<<-1<=2)insert(a-b); int tmp=a-b; for(int i=1,ed=sqrt(tmp);i<=ed;i++){ if(tmp%i==0){ insert(i); insert(tmp/i); } } cout<