Buggy python submission (verdict: Runtime Error):
import itertools


c = list(itertools.product(range(10), repeat=4))

if __name__ == '__main__':
    for line in sys.stdin.readlines():
        print sum([l for l in c if int(n) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import itertools
import sys


c = list(itertools.product(range(10), repeat=4))

if __name__ == '__main__':
    for line in sys.stdin.readlines():
        print sum([l for l in c if int(n) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import itertools
import sys


c = list(itertools.product(range(10), repeat=4))

for line in sys.stdin.readlines():
    print sum([l for l in c if int(n) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import itertools
import sys


c = list(itertools.product(range(10), repeat=4))

if __name__ == '__main__':
    for n in sys.stdin.readlines():
        print sum([l for l in c if int(n) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import itertools
import sys


c = list(itertools.product(range(10), repeat=4))

for n in sys.stdin.readlines():
    print sum([l for l in c if int(n) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import itertools
import sys


c = list(itertools.product(range(10), repeat=4))

for n in sys.stdin.readlines():
    print sum([l for l in c if int(n.strip()) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import itertools
import sys


c = list(itertools.product(range(10), repeat=4))

for n in sys.stdin.readline():
    print sum([l for l in c if int(n) == sum(l)])

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Buggy python submission (verdict: Runtime Error):
import sys


for n in sys.stdin.readline():
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret

Fixed submission:
import sys


for n in sys.stdin:
    ret = 0
    for a in xrange(10):
        for b in xrange(10):
            for c in xrange(10):
                for d in xrange(10):
                    if a+b+c+d == int(n):
                        ret += 1
    print ret