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