#include <bits/stdc++.h>
using namespace std;
int fx[] = {1, -1, 0, 0};
int fy[] = {0, 0, 1, -1};
int main() {
  int n, k;
  cin >> n >> k;
  if (k >= (n * (n - 1)) / 2)
    cout << "no solution";
  else {
    for (int i = 0; i < n; i++) cout << 0 << ' ' << i + 1 << '\n';
  }
}
