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