n, x = map(int, input().split())
l = list(map(int, input().split()))

d = 0
count = 1
for v in l:
    dv = d + v
    # print(dv)
    
    if dv > x:
        break
    
    count += 1
    d += v

print(count) 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 d = 0 d 0 count = 1 count 1 for v in l:
    dv = d + v
    # print(dv)
    
    if dv > x:
        break
    
    count += 1
    d += v v l dv = d + v dv d + v d v if dv > x:
        break
    
     dv > x dv x break count += 1 count 1 d += v d v print(count) print count x = map(int, input().split()) map(int, input().split()) x l = list(map(int, input().split())) list(map(int, input().split())) l count = 1 1 count d += v v d count += 1 1 count dv = d + v d + v dv d = 0 0 d n, x = map(int, input().split()) map(int, input().split()) n
n, x = map(int, input().split())
l = list(map(int, input().split()))

d = 0
count = 1
for v in l:
    dv = d + v
    # print(dv)
    
    if dv > x:
        break
    
    count += 1
    d += v

print(count)