import itertools
import bisect

N, X = map(int, input().split())
*L, = map(int, input().split())

A = list(itertools.accumulate(L))
print(bisect.bisect(A, X) + 1) import itertools itertools import bisect bisect N, X = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split X *L, = map(int, input().split()) *L L map(int, input().split()) map int input().split() ().split () input split A = list(itertools.accumulate(L)) A list(itertools.accumulate(L)) list itertools.accumulate(L) itertools.accumulate itertools accumulate L print(bisect.bisect(A, X) + 1) print bisect.bisect(A, X) + 1 bisect.bisect(A, X) bisect.bisect bisect bisect A X 1 X = map(int, input().split()) map(int, input().split()) X A = list(itertools.accumulate(L)) list(itertools.accumulate(L)) A N, X = map(int, input().split()) map(int, input().split()) N
import itertools
import bisect

N, X = map(int, input().split())
*L, = map(int, input().split())

A = list(itertools.accumulate(L))
print(bisect.bisect(A, X) + 1)