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