n, x = map(int, input().split())
L = list(map(int, input().split()))
dist = 0
res = 0
for i, l in enumerate(L, 1):
    dist += l
    if dist > x:
        print(i)
        exit()
    elif dist == x:
        print(i + 1)
        exit()
print(n + 1) 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 dist = 0 dist 0 res = 0 res 0 for i, l in enumerate(L, 1):
    dist += l
    if dist > x:
        print(i)
        exit()
    elif dist == x:
        print(i + 1)
        exit() i l enumerate(L, 1) enumerate L 1 dist += l dist l if dist > x:
        print(i)
        exit()
    elif dist == x:
        print(i + 1)
        exit() dist > x dist x print(i) print i exit() exit elif dist == x:
        print(i + 1)
        exit() dist == x dist x print(i + 1) print i + 1 i 1 exit() exit print(n + 1) print n + 1 n 1 x = map(int, input().split()) map(int, input().split()) x dist += l l dist res = 0 0 res L = list(map(int, input().split())) list(map(int, input().split())) L n, x = map(int, input().split()) map(int, input().split()) n dist = 0 0 dist
n, x = map(int, input().split())
L = list(map(int, input().split()))
dist = 0
res = 0
for i, l in enumerate(L, 1):
    dist += l
    if dist > x:
        print(i)
        exit()
    elif dist == x:
        print(i + 1)
        exit()
print(n + 1)
