#include <bits/stdc++.h>
const double Pi = acos(-1.0);
using namespace std;
int main(int argc, char** argv) {
  int n, k;
  cin >> n >> k;
  if (k >= n * (n - 1) / 2) {
    cout << "no solution\n";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    int x = 0;
    int y = i;
    cout << x << " " << y << "\n";
  }
  return 0;
}
