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