#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int k;
  scanf("%d%d", &n, &k);
  int complexity = (n * (n - 1)) / 2;
  if (k >= complexity) {
    cout << "no solution" << endl;
    return 0;
  }
  int x = 0, y = 1;
  for (int i = 0; i < n; i++) {
    cout << x << " " << y << endl;
    y++;
  }
}
