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