import sys,itertools

k=list(range(10))

for l in sys.stdin:print([sum(x)for x in list(itertools.product(k,k,k,k))].count(int(l)))
import sys

def f(s,d,g,c):

	if d>3:return c

	for n in range(10):

		if s+n==g:return c+1

		elif s+n>g:return c

		else:c=f(s+n,d+1,g,c)

	return c

for l in sys.stdin:

	print(f(0,0,int(l),0))
import sys, itertools

k = list(range(10))
for l in sys.stdin:
    print([sum(x) for x in list(itertools.product(k, k, k, k))].count(int(l)))

import sys


def f(s, d, g, c):
    if d > 3:
        return c
    for n in range(10):
        if s + n == g:
            return c + 1
        elif s + n > g:
            return c
        else:
            c = f(s + n, d + 1, g, c)
    return c


for l in sys.stdin:
    print(f(0, 0, int(l), 0))

-import sys, itertools +import sys -k = list(range(10)) + +def f(s, d, g, c): +    if d > 3: +        return c +    for n in range(10): +        if s + n == g: +            return c + 1 +        elif s + n > g: +            return c +        else: +            c = f(s + n, d + 1, g, c) +    return c + + -    print([sum(x) for x in list(itertools.product(k, k, k, k))].count(int(l))) +    print(f(0, 0, int(l), 0))