while True:

    try:

        n = int(eval(input()))

        count = 0

        for a in range(0,10):

            for b in range(0,10):

                for c in range(0,10):

                    for d in range(0,10):

                        if a+b+c+d==n:

                            count+=1

        print(count)

    except:

        break
from itertools import product

while True:

    try:

        n = int(eval(input()))

    except:

        break

    print((sum(a+b+c+d==n for a,b,c,d in product(list(range(10)), repeat=4))))
while True:
    try:
        n = int(eval(input()))
        count = 0
        for a in range(0, 10):
            for b in range(0, 10):
                for c in range(0, 10):
                    for d in range(0, 10):
                        if a + b + c + d == n:
                            count += 1
        print(count)
    except:
        break

from itertools import product

while True:
    try:
        n = int(eval(input()))
    except:
        break
    print(
        (sum(a + b + c + d == n for a, b, c, d in product(list(range(10)), repeat=4)))
    )

+from itertools import product + -        count = 0 -        for a in range(0, 10): -            for b in range(0, 10): -                for c in range(0, 10): -                    for d in range(0, 10): -                        if a + b + c + d == n: -                            count += 1 -        print(count) +    print( +        (sum(a + b + c + d == n for a, b, c, d in product(list(range(10)), repeat=4))) +    )