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