#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  while (scanf("%d %d", &n, &k) != EOF) {
    if (k >= n * (n - 1) / 2)
      printf("no solution\n");
    else
      for (int i = 1; i <= n; i++) printf("0 %d\n", i);
  }
  return 0;
}
