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