import numpy as np

n, x = map(int, input().split())
L = list(map(int, input().split()))

CS_L = np.cumsum(L).tolist()
ans = len([l for l in CS_L if l <= x])
print(ans + 1) import numpy as np numpy 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 CS_L = np.cumsum(L).tolist() CS_L np.cumsum(L).tolist() np.cumsum(L).tolist np.cumsum(L) np.cumsum np cumsum L tolist l for l in CS_L if l <= x for l in CS_L if l <= x l CS_L l <= x l x if l <= x l ans = len([l for l in CS_L if l <= x]) ans len([l for l in CS_L if l <= x]) len [l for l in CS_L if l <= x] print(ans + 1) print ans + 1 ans 1 n, x = map(int, input().split()) map(int, input().split()) n ans = len([l for l in CS_L if l <= x]) len([l for l in CS_L if l <= x]) ans x = map(int, input().split()) map(int, input().split()) x CS_L = np.cumsum(L).tolist() np.cumsum(L).tolist() CS_L L = list(map(int, input().split())) list(map(int, input().split())) L
import numpy as np

n, x = map(int, input().split())
L = list(map(int, input().split()))

CS_L = np.cumsum(L).tolist()
ans = len([l for l in CS_L if l <= x])
print(ans + 1)