#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:64000000")
const int infi = 1e9 + 7;
const long long infl = 1e18;
const long double eps = 1e-7;
const long double eps1 = 1e-10;
const int mod = (1e9 + 7);
const long long mod1 = 1e9 + 7;
const long long mod2 = 1e9 + 9;
const long long p1 = 29;
const long long p2 = 31;
const int ver1 = (62 * 62);
int main() {
  int n, k;
  cin >> n >> k;
  int m = n * (n - 1) / 2;
  if (m <= k) {
    cout << "no solution";
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    cout << i << ' ' << i * 2050 << endl;
  }
  return 0;
}
