n,x = map(int,input().split())
l = list(map(int,input().split()))
wa = 0
d = [0]*(n+3)
d[1]=0
d.pop(0)
wa = 1
for i in range(2,n+2):
  d[i]=d[i-1]+l[i-2]
  if(d[i]>x):
    break
  wa+=1
print(wa) 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 wa = 0 wa 0 d = [0]*(n+3) d [0]*(n+3) [0] 0 n+3 n 3 d[1]=0 d[1] d 1 0 d.pop(0) d.pop d pop 0 wa = 1 wa 1 for i in range(2,n+2):
  d[i]=d[i-1]+l[i-2]
  if(d[i]>x):
    break
  wa+=1 i range(2,n+2) range 2 n+2 n 2 d[i]=d[i-1]+l[i-2] d[i] d i d[i-1]+l[i-2] d[i-1] d i-1 i 1 l[i-2] l i-2 i 2 if(d[i]>x):
    break
   d[i]>x d[i] d i x break wa+=1 wa 1 print(wa) print wa d = [0]*(n+3) [0]*(n+3) d x = map(int,input().split()) map(int,input().split()) x l = list(map(int,input().split())) list(map(int,input().split())) l wa = 1 1 wa wa+=1 1 wa n,x = map(int,input().split()) map(int,input().split()) n wa = 0 0 wa
n,x = map(int,input().split())
l = list(map(int,input().split()))
wa = 0
d = [0]*(n+3)
d[1]=0
d.pop(0)
wa = 1
for i in range(2,n+2):
  d[i]=d[i-1]+l[i-2]
  if(d[i]>x):
    break
  wa+=1
print(wa)