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