#include <bits/stdc++.h>
using namespace std;
static const int INF = 500000000;
template <class T>
void debug(T a, T b) {
  for (; a != b; ++a) cerr << *a << ' ';
  cerr << endl;
}
int n, k;
int main() {
  cin >> n >> k;
  int maxi = n * (n - 1) / 2;
  if (k >= maxi) {
    puts("no solution");
    return 0;
  }
  for (int i = 0; i < n; ++i) printf("%d %d\n", 0, i);
  return 0;
}
