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