#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
const int inf = 1 << 29;
const int mod = 1000000007;
const double eps = 1e-8;
int n, li;
int main() {
  scanf("%d%d", &n, &li);
  if (li >= n * (n - 1) / 2)
    puts("no solution");
  else {
    for (int i = 1; i <= n; i++) printf("0 %d\n", i);
  }
}
