n,x = map(int,input().split())
l = list(map(int,input().split()))

lis = [0]
for i in range(n):
    lis.append(lis[i]+l[i])

print(sum(1 for li in lis if li <= x )) n,x = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x l = list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split lis = [0] lis [0] 0 for i in range(n):
    lis.append(lis[i]+l[i]) i range(n) range n lis.append(lis[i]+l[i]) lis.append lis append lis[i]+l[i] lis[i] lis i l[i] l i print(sum(1 for li in lis if li <= x )) print sum(1 for li in lis if li <= x ) sum 1 n,x = map(int,input().split()) map(int,input().split()) n l = list(map(int,input().split())) list(map(int,input().split())) l lis = [0] [0] lis x = map(int,input().split()) map(int,input().split()) x
n,x = map(int,input().split())
l = list(map(int,input().split()))

lis = [0]
for i in range(n):
    lis.append(lis[i]+l[i])

print(sum(1 for li in lis if li <= x ))