n, x = map(int, input().split())
L = list(map(int, input().split()))
val = 0
count = 1

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

for l in L:
    val += l
    if val <= x:
        count += 1
print(count)