#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const double PI = 3.141592653589793238463;
const int N = 2e5 + 100;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int x, k;
  cin >> x >> k;
  if (x * (x - 1) / 2 <= k) {
    cout << "no solution\n";
    return 0;
  }
  for (int i = 1e6; i < 1e6 + x; i++) cout << 0 << " " << i << '\n';
  return 0;
}
