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