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