n,x = map(int,input().split())
l = list(map(int,input().split()))
cnt = 1
t = 0
for v in l:
  t += v
  if t>x:
    break
  cnt += 1
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 t = 0 t 0 for v in l:
  t += v
  if t>x:
    break
  cnt += 1 v l t += v t v if t>x:
    break
   t>x t x break cnt += 1 cnt 1 print(cnt) print cnt t += v v t x = map(int,input().split()) map(int,input().split()) x cnt += 1 1 cnt n,x = map(int,input().split()) map(int,input().split()) n l = list(map(int,input().split())) list(map(int,input().split())) l t = 0 0 t cnt = 1 1 cnt
n,x = map(int,input().split())
l = list(map(int,input().split()))
cnt = 1
t = 0
for v in l:
  t += v
  if t>x:
    break
  cnt += 1
print(cnt)