#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, k;
  cin >> n >> k;
  if (k >= n * (n - 1) / 2)
    cout << "no solution"
         << "\n";
  else {
    for (int i = n - 1; i > -1; --i) cout << 0 << " " << i << "\n";
  }
  return 0;
}
