#include <bits/stdc++.h>
using namespace std;
const long long inf = 1 << 28;
int main() {
  long long n, m, i, j, k;
  while (cin >> n >> k) {
    if ((n * (n - 1)) / 2 <= k)
      printf("no solution\n");
    else {
      m = 0;
      j = 1;
      for (i = 0; i < n; i++)
        cout << "0"
             << " " << j++ << "\n";
    }
  }
  return 0;
}
