import sys

for e in sys.stdin:

 n=0

 for a in range(10):

  for b in range(10):

   for c in range(10):

    for d in range(10):

     if a+b+c+d==int(e):n+=1

 print(n)

import sys

for e in sys.stdin:

 e=int(e);x=list(range(10))

 print((sum([1 for a in x for b in x for c in x for d in x if a+b+c+d==e])))

import sys

for e in sys.stdin:
    n = 0
    for a in range(10):
        for b in range(10):
            for c in range(10):
                for d in range(10):
                    if a + b + c + d == int(e):
                        n += 1
    print(n)

import sys

for e in sys.stdin:
    e = int(e)
    x = list(range(10))
    print((sum([1 for a in x for b in x for c in x for d in x if a + b + c + d == e])))

-    n = 0 -    for a in range(10): -        for b in range(10): -            for c in range(10): -                for d in range(10): -                    if a + b + c + d == int(e): -                        n += 1 -    print(n) +    e = int(e) +    x = list(range(10)) +    print((sum([1 for a in x for b in x for c in x for d in x if a + b + c + d == e])))