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

a=[0]*51

for i in range(19):

 a[i]=a[36-i]=(i+3)*(i+2)*(i+1)//6-max(2*(i-9)*(i-8)*(i-7)//3,0)

for e in sys.stdin:

 print((a[int(e)]))

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

a = [0] * 51
for i in range(19):
    a[i] = a[36 - i] = (i + 3) * (i + 2) * (i + 1) // 6 - max(
        2 * (i - 9) * (i - 8) * (i - 7) // 3, 0
    )
for e in sys.stdin:
    print((a[int(e)]))

+a = [0] * 51 +for i in range(19): +    a[i] = a[36 - i] = (i + 3) * (i + 2) * (i + 1) // 6 - max( +        2 * (i - 9) * (i - 8) * (i - 7) // 3, 0 +    ) -    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]))) +    print((a[int(e)]))