#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K; cin>>N>>K; if(K==0){ cout<<-1<<"\n"; } ll c=N*N-K; for(int i=0;i