n, x = map(int, input().split())
l = list(map(int, input().split()))
L = [0] + l

a = 0
count = 1
for i in l:
    a += i
    if a <= x:
        count += 1
print(count) 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 L = [0] + l L [0] + l [0] 0 l a = 0 a 0 count = 1 count 1 for i in l:
    a += i
    if a <= x:
        count += 1 i l a += i a i if a <= x:
        count += 1 a <= x a x count += 1 count 1 print(count) print count x = map(int, input().split()) map(int, input().split()) x a = 0 0 a n, x = map(int, input().split()) map(int, input().split()) n a += i i a l = list(map(int, input().split())) list(map(int, input().split())) l L = [0] + l [0] + l L count = 1 1 count count += 1 1 count
n, x = map(int, input().split())
l = list(map(int, input().split()))
L = [0] + l

a = 0
count = 1
for i in l:
    a += i
    if a <= x:
        count += 1
print(count)