import sys

def f(a,b):

  A=list(range(10))

  if b==1:x=1 if a in A else 0

  else:x=sum([f(a-e,b-1)for e in A])

  return x

for n in map(int,sys.stdin):

  print(f(n,4))
import sys

def f(a,b):

  A=list(range(10))

  if b==1:x=1 if a in A else 0

  elif a<0 or a>b*9:x=0

  else:x=sum([f(a-e,b-1)for e in A])

  return x

for n in map(int,sys.stdin):

  print(f(n,4))
import sys


def f(a, b):
    A = list(range(10))
    if b == 1:
        x = 1 if a in A else 0
    else:
        x = sum([f(a - e, b - 1) for e in A])
    return x


for n in map(int, sys.stdin):
    print(f(n, 4))

import sys


def f(a, b):
    A = list(range(10))
    if b == 1:
        x = 1 if a in A else 0
    elif a < 0 or a > b * 9:
        x = 0
    else:
        x = sum([f(a - e, b - 1) for e in A])
    return x


for n in map(int, sys.stdin):
    print(f(n, 4))

+    elif a < 0 or a > b * 9: +        x = 0