#include #define rep(i,n) for(ll i=0;i<(ll)(n);i++) #define all(x) x.begin(), x.end() using namespace std; using ll=long long; using ld=long double; using P=pair; #include using namespace atcoder; //using mint=static_modint<998244353>; using mint=static_modint<1000000007>; void solve(){ ll n,x;cin>>n>>x; if(n*(n+1)>x*2){ cout<<-1<>t; rep(i,t)solve(); }