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

reach = 0
for i, v in enumerate(L):
  reach += v
  if reach > x:
    print(i + 1)
    exit()
print(n + 1) 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 reach = 0 reach 0 for i, v in enumerate(L):
  reach += v
  if reach > x:
    print(i + 1)
    exit() i v enumerate(L) enumerate L reach += v reach v if reach > x:
    print(i + 1)
    exit() reach > x reach x print(i + 1) print i + 1 i 1 exit() exit print(n + 1) print n + 1 n 1 L = list(map(int, input().split())) list(map(int, input().split())) L reach = 0 0 reach reach += v v reach n, x = map(int, input().split()) map(int, input().split()) n x = map(int, input().split()) map(int, input().split()) x
n, x = map(int, input().split())
L = list(map(int, input().split()))

reach = 0
for i, v in enumerate(L):
  reach += v
  if reach > x:
    print(i + 1)
    exit()
print(n + 1)