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