#include <bits/stdc++.h>
using namespace std;
string t2 = "miao.", t1 = "lala.";
bool check1(string s) {
  if (s.size() < t1.size()) return false;
  int j = 0;
  for (int i = s.size() - t1.size(); i < s.size(); i++) {
    if (s[i] != t1[j]) return false;
    j++;
  }
  return true;
}
bool check2(string s) {
  if (s.size() < t2.size()) return false;
  for (int i = 0; i < t2.size(); i++) {
    if (t2[i] != s[i]) return false;
  }
  return true;
}
int main() {
  int n, k;
  cin >> n >> k;
  int count = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) count++;
  }
  if (count <= k) {
    cout << "no solution" << endl;
  } else {
    for (int i = 0; i < n; i++) {
      cout << 0 << ' ' << i << endl;
    }
  }
  return 0;
}
