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