n, x = list(map(int, input().split()))
l = list(map(int, input().split()))
d = [0]
for i in range(len(l)):
    d.append(d[i] + l[i])
print(len(list(filter(lambda d_i: d_i <= x, d)))) 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 d = [0] d [0] 0 for i in range(len(l)):
    d.append(d[i] + l[i]) i range(len(l)) range len(l) len l d.append(d[i] + l[i]) d.append d append d[i] + l[i] d[i] d i l[i] l i print(len(list(filter(lambda d_i: d_i <= x, d)))) print len(list(filter(lambda d_i: d_i <= x, d))) len list(filter(lambda d_i: d_i <= x, d)) list filter(lambda d_i: d_i <= x, d) filter lambda d_i: d_i <= x d_i <= x d_i x d_i d d = [0] [0] d x = list(map(int, input().split())) list(map(int, input().split())) x l = list(map(int, input().split())) list(map(int, input().split())) l n, x = list(map(int, input().split())) list(map(int, input().split())) n
n, x = list(map(int, input().split()))
l = list(map(int, input().split()))
d = [0]
for i in range(len(l)):
    d.append(d[i] + l[i])
print(len(list(filter(lambda d_i: d_i <= x, d))))