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