Buggy python submission (verdict: Runtime Error):
a, b, c, x = map(int,[input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for n in range(c+1):
            if t = i*500 + j*100 + n*50 == x:
                count += 1
print(count)

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
a,b,c,x = map(int,[input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for n in range(c+1):
            if t = i*500 + j*100 + n*50 == x:
                count = count + 1
print(count)

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
a,b,c,x = map(int,[input() for i in range(4)])
c = 0
for i in range(a+1):
    for j in range(b+1):
        for n in range(c+1):
            if t = i*500 + j*100 + n*50 == x:
                c +=1
print(c)

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
a,b,c,x = map(int,[input() for i in range(4)])
c = 0
for i in range(a+1):
    for j in range(b+1):
        for n in range(c+1):
            if t = i*500 + j*100 + n*50 == x:
                c = c + 1
print(c)

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
a,b,c,x = map(int,[input() for i in range(4)]
c = 0
for i in range(a+1):
    for j in range(b+1):
        for n in range(c+1):
            if t = i*500 + j*100 + n*50 == x:
                c = c + 1
print(c)
              

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):

a = list(map(int,input().split())
c = 0
for x in range(a[0]+1):
    for y in range(a[1]+1):
        for z in range(a[2]+1):
            t = 500*x + 100*y + 50*z
            if t == a[3]:
                c = c + 1
print(c)

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split())
c = 0
for x in range(a[0]+1):
    for y in range(a[1]+1):
        for z in range(a[2]+1):
            t = 500*x + 100*y + 50*z
            if t == a[3]:
                c = c + 1
print(c)

Fixed submission:
a, b, c, x = map(int, [input() for i in range(4)])
count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i*500 + j*100 + k*50 == x:
                count+=1
print(count)