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