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