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