import sys

from itertools import product



sum = [0] * 51

for k,l in product([i+j for i,j in product(list(range(10)),repeat=2)],repeat=2):

    sum[k+l] += 1



for i in sys.stdin:

    print((sum[int(i)]))
import sys

import math



def nCr(n, k):

    if 0 <= k <= n:

        nk,kk = 1,1

        for t in range(1, min(k, n - k) + 1):

            nk = nk*n

            kk = kk*t

            n -= 1

        return nk // kk

    else:

        return 0



p = [0] * 51

v = 0

for i in range(19):

    t = nCr(i+3, i)

    v = v + 4 * nCr(i-8,i-10)

    p[i] = t - v

    p[36-i] = p[i]



for i in sys.stdin:

    print((p[int(i)]))
import sys
from itertools import product

sum = [0] * 51
for k, l in product([i + j for i, j in product(list(range(10)), repeat=2)], repeat=2):
    sum[k + l] += 1
for i in sys.stdin:
    print((sum[int(i)]))

import sys
import math


def nCr(n, k):
    if 0 <= k <= n:
        nk, kk = 1, 1
        for t in range(1, min(k, n - k) + 1):
            nk = nk * n
            kk = kk * t
            n -= 1
        return nk // kk
    else:
        return 0


p = [0] * 51
v = 0
for i in range(19):
    t = nCr(i + 3, i)
    v = v + 4 * nCr(i - 8, i - 10)
    p[i] = t - v
    p[36 - i] = p[i]
for i in sys.stdin:
    print((p[int(i)]))

-from itertools import product +import math -sum = [0] * 51 -for k, l in product([i + j for i, j in product(list(range(10)), repeat=2)], repeat=2): -    sum[k + l] += 1 + +def nCr(n, k): +    if 0 <= k <= n: +        nk, kk = 1, 1 +        for t in range(1, min(k, n - k) + 1): +            nk = nk * n +            kk = kk * t +            n -= 1 +        return nk // kk +    else: +        return 0 + + +p = [0] * 51 +v = 0 +for i in range(19): +    t = nCr(i + 3, i) +    v = v + 4 * nCr(i - 8, i - 10) +    p[i] = t - v +    p[36 - i] = p[i] -    print((sum[int(i)])) +    print((p[int(i)]))