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