import sys

for line in sys.stdin:

    n = int(line)

    count = 0

    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:

                        count += 1

    print(count)
import sys

t = [0 for i in range(10000)]

c = 0

for i in range(10):

    for j in range(10):

        for k in range(10):

            for l in range(10):

                t[c] = i + j + k + l

                c += 1

for line in sys.stdin:

    print((t.count(int(line))))
import sys

for line in sys.stdin:
    n = int(line)
    count = 0
    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:
                        count += 1
    print(count)

import sys

t = [0 for i in range(10000)]
c = 0
for i in range(10):
    for j in range(10):
        for k in range(10):
            for l in range(10):
                t[c] = i + j + k + l
                c += 1
for line in sys.stdin:
    print((t.count(int(line))))

+t = [0 for i in range(10000)] +c = 0 +for i in range(10): +    for j in range(10): +        for k in range(10): +            for l in range(10): +                t[c] = i + j + k + l +                c += 1 -    n = int(line) -    count = 0 -    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: -                        count += 1 -    print(count) +    print((t.count(int(line))))