import itertools

import sys

s=list(range(0,10))

chk=list(itertools.product(s,repeat=4))

for j in sys.stdin:

    ans=0

    for k in chk:

        if sum(k)==int(j):

            ans+=1

    print(ans)
while 1:

    try:

        n=int(input())

    except EOFError:

        break

    print(len([1 for i in range(10) for j in range(10) for k in range(10) for l in range(10) if i+j+k+l==n]))
import itertools
import sys

s = list(range(0, 10))
chk = list(itertools.product(s, repeat=4))
for j in sys.stdin:
    ans = 0
    for k in chk:
        if sum(k) == int(j):
            ans += 1
    print(ans)

while 1:
    try:
        n = int(input())
    except EOFError:
        break
    print(
        len(
            [
                1
                for i in range(10)
                for j in range(10)
                for k in range(10)
                for l in range(10)
                if i + j + k + l == n
            ]
        )
    )

-import itertools -import sys - -s = list(range(0, 10)) -chk = list(itertools.product(s, repeat=4)) -for j in sys.stdin: -    ans = 0 -    for k in chk: -        if sum(k) == int(j): -            ans += 1 -    print(ans) +while 1: +    try: +        n = int(input()) +    except EOFError: +        break +    print( +        len( +            [ +                1 +                for i in range(10) +                for j in range(10) +                for k in range(10) +                for l in range(10) +                if i + j + k + l == n +            ] +        ) +    )