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