Buggy python submission (verdict: Runtime Error):
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = L[0]
i = 1
L = 1
 
while d <= x:
    d += l[L]
    i += 1
    L += 1  
    if i == n + 1:
      break
print(i)

Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break

Buggy python submission (verdict: Runtime Error):
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 0
 
while d <= x:
    if i  == n + 1:
      break
    d += l[i]
    i += 1 
print(i)

Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break

Buggy python submission (verdict: Runtime Error):
nx = list(map(int, input().split()))
l = list(map(int, input().split()))
x = nx[1]
n = nx[0]
l[0]= 0
d = 0

for i in range(101):
    d = d + l[i]
    print(d)
    if d >= x:
        print(i+1)
        break


Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break

Buggy python submission (verdict: Runtime Error):
nx = list(map(int, input().split()))
l = list(map(int, input().split()))
x = nx[1]
d = 0
i = 0

while d <= x:
    d = d + l[i]
    i += 1

print(i)


Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break

Buggy python submission (verdict: Runtime Error):
nx = map(int, input().split())
l = map(int, input().split())
x = nx[1]
d = 0
i = 0

while d <= x:
    d = d + l[i]
    i += 1

print(i)


Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break

Buggy python submission (verdict: Runtime Error):
nx = map(int, raw_input().split())
l = map(int, raw_input().split())

x = nx[1]

d = 0
i = 0

while d <= x:
    d = d + l[i]
    i = i + 1

print(i)


Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break

Buggy python submission (verdict: Runtime Error):
nx = map(int, raw_input().split())
l = map(int, raw_input().split())

n = nx[0]
x = nx[1]

d = 0
i = 0

while d <= x:
    d = d + l[i]
    i = i + 1

print(i)

Fixed submission:
nx = map(int, raw_input().split())
l = map(int, raw_input().split())
 
n = nx[0]
x = nx[1]
 
d = 0
i = 1
 
while True:
    if d <= x:
        d += l[i-1]
        i += 1
    if d > x:
        print(i-1)
        break
    if i == n + 1:
      print(i)
      break