#include <bits/stdc++.h>
using namespace std;
const int INFint = 2147483647;
const long long INF = 9223372036854775807ll;
const long long MOD = 1000000007ll;
int main() {
  ios_base::sync_with_stdio(0);
  long long n, k;
  cin >> n >> k;
  if (n * (n - 1) / 2 <= k) {
    cout << "no solution" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cout << 0 << ' ' << i << endl;
  }
  fprintf(stderr, "\nTIME = %lf\n", 1.0 * clock() / CLOCKS_PER_SEC);
  return 0;
}
