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

ans = 1
p = 0

for i in range(n):
    p += a[i]
    if p<x:
        ans+=1
    elif p==x:
        ans+=1
        break
    else:
        break

print(ans) n, x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = 1 ans 1 p = 0 p 0 for i in range(n):
    p += a[i]
    if p<x:
        ans+=1
    elif p==x:
        ans+=1
        break
    else:
        break i range(n) range n p += a[i] p a[i] a i if p<x:
        ans+=1
    elif p==x:
        ans+=1
        break
    else:
        break p<x p x ans+=1 ans 1 elif p==x:
        ans+=1
        break
     p==x p x ans+=1 ans 1 break break print(ans) print ans n, x = map(int, input().split()) map(int, input().split()) n p += a[i] a[i] p a = list(map(int, input().split())) list(map(int, input().split())) a ans = 1 1 ans p = 0 0 p x = map(int, input().split()) map(int, input().split()) x ans+=1 1 ans ans+=1 1 ans
n, x = map(int, input().split())
a = list(map(int, input().split()))

ans = 1
p = 0

for i in range(n):
    p += a[i]
    if p<x:
        ans+=1
    elif p==x:
        ans+=1
        break
    else:
        break

print(ans)