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