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