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