#include <bits/stdc++.h>
using namespace std;
const int inf = 10000000;
const int maxn = 10000;
int main() {
  int n, k;
  while (cin >> n >> k) {
    int m = n * (n - 1) / 2;
    if (m <= k) {
      puts("no solution");
      continue;
    }
    for (int i = 0; n; --n, ++i) cout << 0 << ' ' << i << endl;
  }
  return 0;
}
