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