n,x = map(int,input().split())
l_lst = list(map(int,input().split()))
b = 0
sum_l = 0
for l in l_lst:
  b+=1
  sum_l += l
  if sum_l > x:
    break
if sum_l <= x:
  b+=1

print(b) n,x = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x l_lst = list(map(int,input().split())) l_lst list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split b = 0 b 0 sum_l = 0 sum_l 0 for l in l_lst:
  b+=1
  sum_l += l
  if sum_l > x:
    break l l_lst b+=1 b 1 sum_l += l sum_l l if sum_l > x:
    break sum_l > x sum_l x break if sum_l <= x:
  b+=1 sum_l <= x sum_l x b+=1 b 1 print(b) print b b = 0 0 b sum_l += l l sum_l l_lst = list(map(int,input().split())) list(map(int,input().split())) l_lst b+=1 1 b n,x = map(int,input().split()) map(int,input().split()) n sum_l = 0 0 sum_l b+=1 1 b x = map(int,input().split()) map(int,input().split()) x
n,x = map(int,input().split())
l_lst = list(map(int,input().split()))
b = 0
sum_l = 0
for l in l_lst:
  b+=1
  sum_l += l
  if sum_l > x:
    break
if sum_l <= x:
  b+=1

print(b)
