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