n, x = map(int, input().split())
l_l = map(int, input().split())
z = 0
cnt = 1
for i in l_l:
    z += i
    if z <= x:
        cnt += 1
    else:
        break
print(cnt) n, x = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split x l_l = map(int, input().split()) l_l map(int, input().split()) map int input().split() ().split () input split z = 0 z 0 cnt = 1 cnt 1 for i in l_l:
    z += i
    if z <= x:
        cnt += 1
    else:
        break i l_l z += i z i if z <= x:
        cnt += 1
    else:
        break z <= x z x cnt += 1 cnt 1 break print(cnt) print cnt z = 0 0 z cnt = 1 1 cnt z += i i z n, x = map(int, input().split()) map(int, input().split()) n l_l = map(int, input().split()) map(int, input().split()) l_l cnt += 1 1 cnt x = map(int, input().split()) map(int, input().split()) x
n, x = map(int, input().split())
l_l = map(int, input().split())
z = 0
cnt = 1
for i in l_l:
    z += i
    if z <= x:
        cnt += 1
    else:
        break
print(cnt)