#include <iostream>
#include <stdio.h>
#include <math.h>
typedef long long ll;

using namespace std;

int main()
{
    int n;
    ll t;
    scanf("%d%lld", &n, &t);

    ll sum = 0, maxn = 0, k;
    while(n--)
    {
        scanf("%lld", &k);
        sum += k;
        if(t < sum)
        {
            printf("1\n");
            continue;
        }
        else
        {
            maxn = max(maxn, k);
            printf("%lld\n", (t - sum)/maxn + 2);
        }
    }
    return 0;
}

