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