n, x = map(int,input().split())
l = list(map(int,input().split()))

cnt = 1
now = 0
flg = True
while l:
    now += l.pop(0)
    if now <= x:
        cnt += 1
    else:
      break
print(cnt) 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 cnt = 1 cnt 1 now = 0 now 0 flg = True flg True while l:
    now += l.pop(0)
    if now <= x:
        cnt += 1
    else:
      break l now += l.pop(0) now l.pop(0) l.pop l pop 0 if now <= x:
        cnt += 1
    else:
      break now <= x now x cnt += 1 cnt 1 break print(cnt) print cnt x = map(int,input().split()) map(int,input().split()) x now += l.pop(0) l.pop(0) now now = 0 0 now n, x = map(int,input().split()) map(int,input().split()) n cnt = 1 1 cnt l = list(map(int,input().split())) list(map(int,input().split())) l flg = True True flg cnt += 1 1 cnt
n, x = map(int,input().split())
l = list(map(int,input().split()))

cnt = 1
now = 0
flg = True
while l:
    now += l.pop(0)
    if now <= x:
        cnt += 1
    else:
      break
print(cnt)