import itertools

while True:

    try:

        n = int(eval(input()))

        ans = 0

        for a in itertools.product(list(range(10)), repeat=4):

            if n == sum(a):

                ans += 1

        print(ans)

    except:

        break
import itertools

while True:

 try:print(([sum(a)for a in itertools.product(list(range(10)),repeat=4)].count(int(eval(input())))))

 except:break
import itertools

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

import itertools

while True:
    try:
        print(
            (
                [sum(a) for a in itertools.product(list(range(10)), repeat=4)].count(
                    int(eval(input()))
                )
            )
        )
    except:
        break

-        n = int(eval(input())) -        ans = 0 -        for a in itertools.product(list(range(10)), repeat=4): -            if n == sum(a): -                ans += 1 -        print(ans) +        print( +            ( +                [sum(a) for a in itertools.product(list(range(10)), repeat=4)].count( +                    int(eval(input())) +                ) +            ) +        )