Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N)+1
position = 0
count = 0
while position < x:
    position += L[count]
    count += 1
    if n == count:
        break
if n > count:
    print(count)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N)+1
position = 0
count = 0
if n > count:
    while position < x:
        position += L[count]
        count += 1
    print(count)
else:
    print(n)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
import sys
sys.setrecursionlimit(500000)

N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N) + 1
position = 0
count = 0
while position <= x:
    position += L[count]
    count += 1
if n > count:
    print(count)
else:
    print(n)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N) + 1
position = 0
count = 0
while position < x:
    position += L[count]
    count += 1
if n > count:
    print(count)
else:
    print(n)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N) + 1
position = 0
count = 0
while position <= x:
    position += L[count]
    count += 1
if n > count:
    print(count)
else:
    print(n)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N)
position = 0
count = 0
while position <= x:
    position += L[count]
    count += 1
if n+1 > count:
    print(count)
else:
    print(n+1)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
n = int(N)
position = 0
count = 0
while position <= x:
    position += L[count]
    count += 1
if n+1 < count:
    print(count)
else:
    print(n+1)

Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
position = 0
count = 0
while position <= x:
    position += L[count]
    count += 1
print(count)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = (input().split())
L = list(map(int, input().split()))
x = int(X)
position = 0
count = 0
while position < x:
    position += L[count]
    count += 1
print(count)


Fixed submission:
n, x = list(map(int, input().split()))
li = list(map(int, input().split()))

ans = 1
pos = 0
for i in range(n):
	pos = pos + li[i]
	if pos <= x:
		ans += 1
print(ans)