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