N,X = (int(x) for x in input().split())
L = [int(x) for x in input().split()]
Bound = sum(sum(L[:x])<=X for x in range(0,N+1))
print(Bound) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x N,X = (int(x) for x in input().split()) N (int(x) for x in input().split()) X int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x L = [int(x) for x in input().split()] L [int(x) for x in input().split()] Bound = sum(sum(L[:x])<=X for x in range(0,N+1)) Bound sum(sum(L[:x])<=X for x in range(0,N+1)) sum sum(L[:x])<=X sum(L[:x]) sum L[:x] L :x x X print(Bound) print Bound L = [int(x) for x in input().split()] [int(x) for x in input().split()] L N,X = (int(x) for x in input().split()) (int(x) for x in input().split()) N X = (int(x) for x in input().split()) (int(x) for x in input().split()) X Bound = sum(sum(L[:x])<=X for x in range(0,N+1)) sum(sum(L[:x])<=X for x in range(0,N+1)) Bound
N,X = (int(x) for x in input().split())
L = [int(x) for x in input().split()]
Bound = sum(sum(L[:x])<=X for x in range(0,N+1))
print(Bound)