from itertools import accumulate

N, X = [int(x) for x in input().split()]
L = list([int(x) for x in input().split()])

a = accumulate(L)

for key, i in enumerate(a):
    if i > X:
        print(key+1)
        exit()

print(N+1) from itertools import accumulate int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N, X = [int(x) for x in input().split()] N [int(x) for x in input().split()] X int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x L = list([int(x) for x in input().split()]) L list([int(x) for x in input().split()]) list [int(x) for x in input().split()] a = accumulate(L) a accumulate(L) accumulate L for key, i in enumerate(a):
    if i > X:
        print(key+1)
        exit() key i enumerate(a) enumerate a if i > X:
        print(key+1)
        exit() i > X i X print(key+1) print key+1 key 1 exit() exit print(N+1) print N+1 N 1 L = list([int(x) for x in input().split()]) list([int(x) for x in input().split()]) L a = accumulate(L) accumulate(L) a X = [int(x) for x in input().split()] [int(x) for x in input().split()] X N, X = [int(x) for x in input().split()] [int(x) for x in input().split()] N
from itertools import accumulate

N, X = [int(x) for x in input().split()]
L = list([int(x) for x in input().split()])

a = accumulate(L)

for key, i in enumerate(a):
    if i > X:
        print(key+1)
        exit()

print(N+1)
