#include using namespace std; uint8_t f[100*100000+1]; int val[5000]; int main() { int n, s; while (scanf("%d%d", &n, &s)==2) { memset(f, 0x7f, sizeof(f)); f[0] = 0; for (int i = 0; is) puts("-1"); else printf("%d\n", ans); } } return 0; }