#include <bits/stdc++.h>
using namespace std;
const int dr[] = {-1, 0, 1, 0};
const int dc[] = {0, 1, 0, -1};
string FILE_NAME = "testcase.C";
string NAME;
string itos(int n) {
  stringstream ss;
  ss << n;
  return ss.str();
}
int main() {
  int n, k;
  cin >> n >> k;
  if (k >= n * (n - 1) / 2) {
    cout << "no solution" << endl;
  } else {
    for (int i = 0; i < (n); i++) {
      cout << 0 << ' ' << i << endl;
    }
  }
  return 0;
}
