N,X = map(int,input().split())
L = list(map(int,input().split()))
d = 0
ans = 1
for i in range(N):
    d += L[i]
    if d <= X:
        ans += 1
print(ans) 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 d = 0 d 0 ans = 1 ans 1 for i in range(N):
    d += L[i]
    if d <= X:
        ans += 1 i range(N) range N d += L[i] d L[i] L i if d <= X:
        ans += 1 d <= X d X ans += 1 ans 1 print(ans) print ans d += L[i] L[i] d X = map(int,input().split()) map(int,input().split()) X ans = 1 1 ans L = list(map(int,input().split())) list(map(int,input().split())) L d = 0 0 d N,X = map(int,input().split()) map(int,input().split()) N ans += 1 1 ans
N,X = map(int,input().split())
L = list(map(int,input().split()))
d = 0
ans = 1
for i in range(N):
    d += L[i]
    if d <= X:
        ans += 1
print(ans)