import sys

a=[0]*51;x=list(range(10))

for i in range(51):

 a[i]=sum([1 for p in x for q in x for r in x for s in x if p+q+r+s==i])

for e in sys.stdin:

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

import sys

a=[0]*51

for i in range(10):a[i]=a[36-i]=(i+3)*(i+2)*(i+1)//6

for i in range(10,19):a[i]=a[36-i]=(i+3)*(i+2)*(i+1)//6-a[i-10]*4

for e in map(int,sys.stdin):print((a[e]))

import sys

a = [0] * 51
x = list(range(10))
for i in range(51):
    a[i] = sum([1 for p in x for q in x for r in x for s in x if p + q + r + s == i])
for e in sys.stdin:
    print((a[int(e)]))

import sys

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

-x = list(range(10)) -for i in range(51): -    a[i] = sum([1 for p in x for q in x for r in x for s in x if p + q + r + s == i]) -for e in sys.stdin: -    print((a[int(e)])) +for i in range(10): +    a[i] = a[36 - i] = (i + 3) * (i + 2) * (i + 1) // 6 +for i in range(10, 19): +    a[i] = a[36 - i] = (i + 3) * (i + 2) * (i + 1) // 6 - a[i - 10] * 4 +for e in map(int, sys.stdin): +    print((a[e]))