import itertools
N, X = map(int, input().split())
L = list(map(int, input().split()))
L = list(itertools.accumulate(L))
print(sum([i <= X for i in L]) + 1) import itertools itertools 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 L = list(itertools.accumulate(L)) L list(itertools.accumulate(L)) list itertools.accumulate(L) itertools.accumulate itertools accumulate L i <= X for i in L for i in L i L for i in L i <= X i X print(sum([i <= X for i in L]) + 1) print sum([i <= X for i in L]) + 1 sum([i <= X for i in L]) sum [i <= X for i in L] 1 N, X = map(int, input().split()) map(int, input().split()) N X = map(int, input().split()) map(int, input().split()) X L = list(map(int, input().split())) list(map(int, input().split())) L L = list(itertools.accumulate(L)) list(itertools.accumulate(L)) L
import itertools
N, X = map(int, input().split())
L = list(map(int, input().split()))
L = list(itertools.accumulate(L))
print(sum([i <= X for i in L]) + 1)