a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
d=0
e=0
for i in range(a):
  if d+c[i]<=b:
    d=d+c[i]
    e=e+1
  else:
    break
print(e+1) a,b=input().split() a input().split() ().split () input split b a=int(a) a int(a) int a b=int(b) b int(b) int b c=list(map(int,input().split())) c list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split d=0 d 0 e=0 e 0 for i in range(a):
  if d+c[i]<=b:
    d=d+c[i]
    e=e+1
  else:
    break i range(a) range a if d+c[i]<=b:
    d=d+c[i]
    e=e+1
  else:
    break d+c[i]<=b d+c[i] d c[i] c i b d=d+c[i] d d+c[i] d c[i] c i e=e+1 e e+1 e 1 break print(e+1) print e+1 e 1 d=0 0 d d=d+c[i] d+c[i] d a,b=input().split() input().split() a b=int(b) int(b) b e=e+1 e+1 e a=int(a) int(a) a e=0 0 e b=input().split() input().split() b c=list(map(int,input().split())) list(map(int,input().split())) c
a,b=input().split()
a=int(a)
b=int(b)
c=list(map(int,input().split()))
d=0
e=0
for i in range(a):
  if d+c[i]<=b:
    d=d+c[i]
    e=e+1
  else:
    break
print(e+1)