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

import numpy as np

l = np.cumsum(L)

print(len(l[l<=N])+1) X, N = list(map(int,input().split())) X list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split N L = list(map(int,input().split())) L list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split import numpy as np numpy l = np.cumsum(L) l np.cumsum(L) np.cumsum np cumsum L print(len(l[l<=N])+1) print len(l[l<=N])+1 len(l[l<=N]) len l[l<=N] l l<=N l N 1 L = list(map(int,input().split())) list(map(int,input().split())) L l = np.cumsum(L) np.cumsum(L) l X, N = list(map(int,input().split())) list(map(int,input().split())) X N = list(map(int,input().split())) list(map(int,input().split())) N
X, N = list(map(int,input().split()))
L = list(map(int,input().split()))

import numpy as np

l = np.cumsum(L)

print(len(l[l<=N])+1)