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