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