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