#include <bits/stdc++.h>
using namespace std;
const double EPS = 1E-9;
const int INF = 1000000000;
const long long INF64 = (long long)1E18;
const double PI = 3.1415926535897932384626433832795;
typedef struct {
  int a;
  double p;
} tpo;
int main() {
  long long i, j, n, k, t, m, a[200], p = 0, q = 1;
  cin >> n >> k;
  if (n * (n - 1) / 2 <= k) {
    cout << "no solution" << endl;
    return 0;
  }
  for (i = 0; i < n; ++i) {
    cout << i << " " << i * n << endl;
  }
  return 0;
}
