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