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