

memo=[[0]*51 for i in range(5)]

def rec(i,n):

    if memo[i][n]!=0:

        return memo[i][n]

    if i==4:

        return 1 if n==0 else 0

    for m in range(10):

        memo[i][n]+=rec(i+1,n-m)

    return memo[i][n]

    

while True:

    try:

        n=int(eval(input()))

        print((rec(0,n)))

    except:

        break
memo=[[-1]*51 for i in range(5)]

def rec(i,n):

    if memo[i][n]!=-1:

        return memo[i][n]

    r=0

    if i==4:

        return 1 if n==0 else 0

    for m in range(10):

        r+=rec(i+1,n-m)

    memo[i][n]=r

    return r

     

while True:

    try:

        n=int(eval(input()))

        print((rec(0,n)))

    except:

        break
memo = [[0] * 51 for i in range(5)]


def rec(i, n):
    if memo[i][n] != 0:
        return memo[i][n]
    if i == 4:
        return 1 if n == 0 else 0
    for m in range(10):
        memo[i][n] += rec(i + 1, n - m)
    return memo[i][n]


while True:
    try:
        n = int(eval(input()))
        print((rec(0, n)))
    except:
        break

memo = [[-1] * 51 for i in range(5)]


def rec(i, n):
    if memo[i][n] != -1:
        return memo[i][n]
    r = 0
    if i == 4:
        return 1 if n == 0 else 0
    for m in range(10):
        r += rec(i + 1, n - m)
    memo[i][n] = r
    return r


while True:
    try:
        n = int(eval(input()))
        print((rec(0, n)))
    except:
        break

-memo = [[0] * 51 for i in range(5)] +memo = [[-1] * 51 for i in range(5)] -    if memo[i][n] != 0: +    if memo[i][n] != -1: +    r = 0 -        memo[i][n] += rec(i + 1, n - m) -    return memo[i][n] +        r += rec(i + 1, n - m) +    memo[i][n] = r +    return r