Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
for i in range(N):
    A = int(input().split())
    if D <=X:
        D+=A
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)
    
    

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
for i in range(N):
    A = int(input())
    if D <=X:
        D+=A
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)
    

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
for i in range(N):
    if D <=X:
        D+=int(input())
        ans+=1
    else:
        A =input()
        continue
if D >X:
    ans-=1
print(ans)

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
for i in range(N):
    if D <=X:
        D+=int(input())
        ans+=1
    else:
        A =input())
        continue
if D >X:
    ans-=1
print(ans)

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
for i in range(N):
    if D <=X:
        D+=int(input())
        ans+=1
    else:
        int(input())
        continue
if D >X:
    ans-=1
print(ans)
    


Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
for i in range(N):
    if D <=X:
        D+=int(input())
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
while D <=X:
    D += int(input())
    ans+= 1
if D >X:
    ans-=1
print(ans)

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)

Buggy python submission (verdict: Runtime Error):
N,X = map(int,input().split())
D = 0
ans = 1
while D <=X:
    D += int(input())
    ans+= 1
if D >X:
    ans-=1
print(ans)
    

Fixed submission:
N,X = map(int,input().split())
D = 0
ans = 1
L = list(x for x in input().split())
for i in range(N):
    
    if D <=X:
        D+=int(L[i])
        ans+=1
    else:
        continue
if D >X:
    ans-=1
print(ans)