Where am I going wrong??
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int t;
cin>>t;
while(t--)
{
long long int l,r;
cin>>l>>r;
long long int x=l-1;
if(l-1<=0 || r<=l || x+l<=r)
cout<<"-1"<<endl;
else
cout<<r%100000000000000000001<<endl;
}
return 0;
}