#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, k;
  cin >> n >> k;
  long kc = 2001;
  if (k >= n * (n - 1) / 2) {
    cout << "no solution";
    return 0;
  }
  long sum = 0;
  long ax[2005], ay[2005];
  for (int i = 1; i <= n; i++) {
    sum += kc;
    ax[i] = 0;
    ay[i] = sum;
    cout << 0 << " " << sum << endl;
    --kc;
  }
  return 0;
}
