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