N, X = map(int, input().split())
L = list(map(int, input().split()))
pos = 0
for i, l in enumerate(L, 1):
    pos += l
    if pos > X:
        print(i)
        break
else:
    print(N + 1) 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 pos = 0 pos 0 for i, l in enumerate(L, 1):
    pos += l
    if pos > X:
        print(i)
        break
else:
    print(N + 1) i l enumerate(L, 1) enumerate L 1 pos += l pos l if pos > X:
        print(i)
        break pos > X pos X print(i) print i break print(N + 1) print N + 1 N 1 L = list(map(int, input().split())) list(map(int, input().split())) L N, X = map(int, input().split()) map(int, input().split()) N pos = 0 0 pos X = map(int, input().split()) map(int, input().split()) X pos += l l pos
N, X = map(int, input().split())
L = list(map(int, input().split()))
pos = 0
for i, l in enumerate(L, 1):
    pos += l
    if pos > X:
        print(i)
        break
else:
    print(N + 1)
