import sys,itertools

k=range(10)

s=[0]*51

for n in [sum(x)for x in list(itertools.product(k,k,k,k))]:s[n]+=1

for l in sys.stdin:print(s[int(l)])
import sys

s=[0]*51

for a in range(10):

	for b in range(10):

		for c in range(10):

			for d in range(10):

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

for l in sys.stdin:print(s[int(l)])
import sys, itertools

k = range(10)
s = [0] * 51
for n in [sum(x) for x in list(itertools.product(k, k, k, k))]:
    s[n] += 1
for l in sys.stdin:
    print(s[int(l)])

import sys

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

-import sys, itertools +import sys -k = range(10) -for n in [sum(x) for x in list(itertools.product(k, k, k, k))]: -    s[n] += 1 +for a in range(10): +    for b in range(10): +        for c in range(10): +            for d in range(10): +                s[a + b + c + d] += 1