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