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