n,x=map(int,input().split())
*l,=map(int,input().split())
s=[0]
for i in range(n):
    s.append(s[i]+l[i])
print(sum(t<=x for t in s)) n,x=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x *l,=map(int,input().split()) *l l map(int,input().split()) map int input().split() ().split () input split s=[0] s [0] 0 for i in range(n):
    s.append(s[i]+l[i]) i range(n) range n s.append(s[i]+l[i]) s.append s append s[i]+l[i] s[i] s i l[i] l i print(sum(t<=x for t in s)) print sum(t<=x for t in s) sum t<=x t x n,x=map(int,input().split()) map(int,input().split()) n s=[0] [0] s x=map(int,input().split()) map(int,input().split()) x
n,x=map(int,input().split())
*l,=map(int,input().split())
s=[0]
for i in range(n):
    s.append(s[i]+l[i])
print(sum(t<=x for t in s))