#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  ios_base::sync_with_stdio(false);
  int n, t;
  cin >> n >> t;
  if (t >= n * (n - 1) / 2)
    cout << "no solution" << endl;
  else {
    for (int i = 0; i < n; i++) cout << 0 << ' ' << i << "\n";
  }
  return 0;
}
