n,x = map(int,input().split())
L = list(map(int,input().split()))
sum = 0
count = 1
for j in range(n):
  sum += L[j]
  if sum <= x:
    count += 1
  else:
    pass
print(count) 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 sum = 0 sum 0 count = 1 count 1 for j in range(n):
  sum += L[j]
  if sum <= x:
    count += 1
  else:
    pass j range(n) range n sum += L[j] sum L[j] L j if sum <= x:
    count += 1
  else:
    pass sum <= x sum x count += 1 count 1 print(count) print count x = map(int,input().split()) map(int,input().split()) x sum = 0 0 sum sum += L[j] L[j] sum count += 1 1 count L = list(map(int,input().split())) list(map(int,input().split())) L count = 1 1 count n,x = map(int,input().split()) map(int,input().split()) n
n,x = map(int,input().split())
L = list(map(int,input().split()))
sum = 0
count = 1
for j in range(n):
  sum += L[j]
  if sum <= x:
    count += 1
  else:
    pass
print(count)