import sys
if locals()['__file__'][-2:] == 'py':
    sys.stdin = open('in.txt', 'r')
rd = lambda: map(int, input().split())
n, t = rd()
last = 0
lastsum = 0
ma = 0
lastans = 0x3f3f3f3f3f3f3f3f
for i in range(n):
    nowsb = int(input())
    lastsum += nowsb
    time = t - lastsum
    ma = max(ma, nowsb)
    lastans = time // ma + 2
    last = nowsb
    print(lastans)

