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