#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  t = 1;
  for (long long tc = 0; tc < t; tc++) {
    long long n, k;
    cin >> n >> k;
    long long temp = n * (n - 1) / 2;
    if (k >= temp) {
      cout << "no solution"
           << "\n";
    } else {
      for (long long i = 0; i < n; i++) {
        cout << 0 << " " << i << "\n";
      }
    }
  }
  return 0;
}
