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