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