#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  if ((n - 1) * n / 2 <= k) {
    cout << "no solution" << endl;
    return 0;
  }
  long x, y;
  x = y = 0;
  while (n--) {
    cout << x << " " << y++ << endl;
  }
  return 0;
}
