#include <bits/stdc++.h>
using namespace std;
typedef long double real;
int n, k;
int main() {
  scanf("%d %d", &n, &k);
  if (n * (n - 1) / 2 <= k) {
    puts("no solution");
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    printf("0 %d\n", i);
  }
}
