#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k;
  cin >> n >> k;
  long long r = (n * (n - 1));
  r = (r >> 1);
  if (r > k) {
    for (long long i = 0; i < n; i++) {
      cout << 0 << " " << i << "\n";
    }
    return 0;
  }
  cout << "no solution\n";
  return 0;
}
