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