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