#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
#include <queue>
#include <cmath>
#include <set>

#define FRER() freopen("in.txt","r",stdin)
#define FREW() freopen("out.txt","w",stdout)

using namespace std;

int main()
{
    //FRER();
    int n, t;
    scanf("%d%d",&n,&t);
    int st = 0;
    int vmax = 0;
    int a;
    int ans;
    int i;
    for(i = 0; i < n; i++)
    {
        scanf("%d",&a);
        ans = 1;
        if(a>=vmax)
            ans += (t-st)/a;
        else{
            ans += (t-st)/vmax;
            if((t-st)%vmax>=a) ans+=1;
        }
        printf("%d\n", ans);
        if(ans==1) break;
        vmax = max(a,vmax);
        st+=a;
    }
    for(i=i+1; i < n; i++){
        scanf("%d",&a);
        puts("1");
    }
    return 0;
}

