n, x = map(int, input().split())
l = list(map(int, input().split()))
sum = 0
cnt = 1

for e in l:
    sum += e
    if sum > x:
        break
    cnt += 1

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

for e in l:
    sum += e
    if sum > x:
        break
    cnt += 1

print(cnt)