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

r=list(range(10))

x=[0]*51

for a in r:

	for b in r:

		for c in r:

			for d in r:

				x[a+b+c+d]+=1

for l in sys.stdin:

	print(x[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

r = list(range(10))
x = [0] * 51
for a in r:
    for b in r:
        for c in r:
            for d in r:
                x[a + b + c + d] += 1
for l in sys.stdin:
    print(x[int(l)])

- -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 - - +r = list(range(10)) +x = [0] * 51 +for a in r: +    for b in r: +        for c in r: +            for d in r: +                x[a + b + c + d] += 1 -    print(f(0, 0, int(l), 0)) +    print(x[int(l)])