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