n, x = map(int,input().split())
l = list(map(int,input().split()))
a = [0]
for i in range(n):
    tmp = a[i] + l[i]
    a.append(tmp)
ans = 0
for i in range(n + 1):
    if (a[i] <= x):
        ans = ans + 1

print(ans) 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 a = [0] a [0] 0 for i in range(n):
    tmp = a[i] + l[i]
    a.append(tmp) i range(n) range n tmp = a[i] + l[i] tmp a[i] + l[i] a[i] a i l[i] l i a.append(tmp) a.append a append tmp ans = 0 ans 0 for i in range(n + 1):
    if (a[i] <= x):
        ans = ans + 1 i range(n + 1) range n + 1 n 1 if (a[i] <= x):
        ans = ans + 1 a[i] <= x a[i] a i x ans = ans + 1 ans ans + 1 ans 1 print(ans) print ans l = list(map(int,input().split())) list(map(int,input().split())) l tmp = a[i] + l[i] a[i] + l[i] tmp a = [0] [0] a ans = 0 0 ans x = map(int,input().split()) map(int,input().split()) x n, x = map(int,input().split()) map(int,input().split()) n ans = ans + 1 ans + 1 ans
n, x = map(int,input().split())
l = list(map(int,input().split()))
a = [0]
for i in range(n):
    tmp = a[i] + l[i]
    a.append(tmp)
ans = 0
for i in range(n + 1):
    if (a[i] <= x):
        ans = ans + 1

print(ans)
