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