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