#include #include #include #include #include #include #include #include #include #include #include #include #define INF 1000000000ll #define MOD 1000000007ll #define EPS 1e-10 #define REP(i,m) for(long long i=0; i P; typedef long double ld; int main() { cin.tie(0); ios::sync_with_stdio(false); ll n,m; cin>>n>>m; ll n1=n-n/2,n2=n/2; if(m>n1*n2||m a(n); vector

ed; ll buf=1; for(ll i=0; i0) { ed.pb(P(i,j)); nokori--; } if(nokori==0) { REP(k,n) { cout<