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