n,x = map(int,input().split())
l = list(map(int,input().split()))
count = []
for i in range(n+1):
  if i == 0:
    d =0
  else:
    d += l[i-1]
  count.append(d)
      
print(len([i for i in count if i <= x])) 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 count = [] count [] for i in range(n+1):
  if i == 0:
    d =0
  else:
    d += l[i-1]
  count.append(d)
       i range(n+1) range n+1 n 1 if i == 0:
    d =0
  else:
    d += l[i-1]
   i == 0 i 0 d =0 d 0 d += l[i-1] d l[i-1] l i-1 i 1 count.append(d) count.append count append d i for i in count if i <= x for i in count if i <= x i count i <= x i x if i <= x i print(len([i for i in count if i <= x])) print len([i for i in count if i <= x]) len [i for i in count if i <= x] d =0 0 d x = map(int,input().split()) map(int,input().split()) x l = list(map(int,input().split())) list(map(int,input().split())) l n,x = map(int,input().split()) map(int,input().split()) n count = [] [] count d += l[i-1] l[i-1] d
n,x = map(int,input().split())
l = list(map(int,input().split()))
count = []
for i in range(n+1):
  if i == 0:
    d =0
  else:
    d += l[i-1]
  count.append(d)
      
print(len([i for i in count if i <= x]))