#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  t = 1;
  while (t--) {
    long long n, k, i;
    cin >> n >> k;
    if (k >= (n * (n - 1)) / 2)
      cout << "no solution";
    else {
      long long a[n], b[n];
      for (i = 0; i < n; i++) a[i] = i + 1;
      long long x = 0;
      for (i = 0; i < n; i++) {
        b[i] = n * i;
      }
      for (i = 0; i < n; i++) cout << a[i] << " " << b[i] << "\n";
    }
  }
  return 0;
}
