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