import sys

def f(a,b):

  c=b*9-9

  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 if 0<=a-e<=c])

  return x

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

def f(a,b,c):

  if b==1:x=1 if 0<=a<=9 else 0

  else:x=sum([f(a-e,b-1,c-9)for e in range(10) if 0<=a-e<=c])

  return x

for n in map(int,sys.stdin):print(f(n,4,3*9))
import sys


def f(a, b):
    c = b * 9 - 9
    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 if 0 <= a - e <= c])
    return x


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

import sys


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


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

-def f(a, b): -    c = b * 9 - 9 -    A = list(range(10)) +def f(a, b, c): -        x = 1 if a in A else 0 +        x = 1 if 0 <= a <= 9 else 0 -        x = sum([f(a - e, b - 1) for e in A if 0 <= a - e <= c]) +        x = sum([f(a - e, b - 1, c - 9) for e in range(10) if 0 <= a - e <= c]) -    print(f(n, 4)) +    print(f(n, 4, 3 * 9))