n, x = map(int, input().split())
cnt = 1
now = 0
for l in map(int, input().split()):
  now += l
  if now > x:
    break
  cnt += 1
print(cnt) n, x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x cnt = 1 cnt 1 now = 0 now 0 for l in map(int, input().split()):
  now += l
  if now > x:
    break
  cnt += 1 l map(int, input().split()) map int input().split() ().split () input split now += l now l if now > x:
    break
   now > x now x break cnt += 1 cnt 1 print(cnt) print cnt cnt += 1 1 cnt x = map(int, input().split()) map(int, input().split()) x n, x = map(int, input().split()) map(int, input().split()) n cnt = 1 1 cnt now += l l now now = 0 0 now
n, x = map(int, input().split())
cnt = 1
now = 0
for l in map(int, input().split()):
  now += l
  if now > x:
    break
  cnt += 1
print(cnt)