#include <iostream>
#include <vector>
using namespace std;

typedef long long ll;

ll a[100100];
ll b[100100];

int main() {
	ll n, t;
	cin >> n >> t;
	vector<ll> h(n);
	for(int i = 0; i < n; i++) cin >> h[i];
	for(int i = 0; i < n; i++) {
		a[i+1] = max(a[i], h[i]);
		b[i+1] = b[i] + h[i];
	}
	for(int i = 0; i < n; i++) {
		ll q, r;
		q = (t-b[i]) / a[i+1];
		r = (t-b[i]) % a[i+1];

		if(q < 0) {
			cout << 1 << endl;
		}
		else {
			cout << q+1 + (r >= h[i]) << endl;
		}
	}
}