#include<cstdio>
#include<algorithm>
using namespace std;
int n;
long long T, a, M, S;
int main() {
	int i;
	scanf("%d%lld", &n, &T);
	for (i = 1; i <= n; i ++ ) {
		scanf("%lld", &a);
		M = max(M, a);

		printf("%lld\n", max(T - S+M-a, 0ll) / M + 1);

		S += a;
	}
}