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