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