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