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

ans = 0
bound = 0
for i in l:
    bound += i
    ans += 1
    if bound > x:
        break
else:
    ans = n + 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 ans = 0 ans 0 bound = 0 bound 0 for i in l:
    bound += i
    ans += 1
    if bound > x:
        break
else:
    ans = n + 1 i l bound += i bound i ans += 1 ans 1 if bound > x:
        break bound > x bound x break ans = n + 1 ans n + 1 n 1 print(ans) print ans ans = 0 0 ans bound = 0 0 bound bound += i i bound x = map(int, input().split()) map(int, input().split()) x ans += 1 1 ans ans = n + 1 n + 1 ans n, x = map(int, input().split()) map(int, input().split()) n l = list(map(int, input().split())) list(map(int, input().split())) l
n, x = map(int, input().split())
l = list(map(int, input().split()))

ans = 0
bound = 0
for i in l:
    bound += i
    ans += 1
    if bound > x:
        break
else:
    ans = n + 1

print(ans)
