#include <bits/stdc++.h>
using namespace std;
template <class T>
T inline Abs(const T& x) {
  return x < 0 ? -x : x;
}
template <class T>
T inline Sqr(const T& x) {
  return x * x;
}
int main(int argc, char* argv[]) {
  int n, k;
  cin >> n >> k;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    a[i] = n * 100000;
  }
  if ((n * (n - 1)) / 2 > k) {
    for (int i = 0; i < n; ++i) {
      cout << i << " " << i * 100000 << endl;
    }
  } else {
    cout << "no solution" << endl;
  }
  return 0;
}
