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