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