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