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