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