#include <bits/stdc++.h>
int main(void) {
  unsigned int long n, k;
  scanf("%lu %lu", &n, &k);
  if ((n * (n - 1) >> 1) <= k) {
    puts("no solution");
    return 0;
  }
  unsigned int long base = 0;
  for (unsigned int long i = 1; i != n; ++i)
    printf("%lu %lu\n", i, base += 5000);
  printf("%lu %lu", n, base);
  return 0;
}
