import sys

table={}

def dfs(a,b):

    global table

    if not a in table:

        if a==0:return 1

        elif b==0 or a < 0:return 0

        table[(a,b)]=sum([dfs(a-i,b-1) for i in range(10)])

    return table[(a,b)]

for i in sys.stdin.readlines():

    print(dfs(int(i.strip()),4))
import sys

def dfs(a,b):

    if a==0:return 1

    elif b==0 or a < 0:return 0

    return sum([dfs(a-i,b-1) for i in range(10)])

for line in sys.stdin.readlines():

    print(dfs(int(line.strip()),4))
import sys

table = {}


def dfs(a, b):
    global table
    if not a in table:
        if a == 0:
            return 1
        elif b == 0 or a < 0:
            return 0
        table[(a, b)] = sum([dfs(a - i, b - 1) for i in range(10)])
    return table[(a, b)]


for i in sys.stdin.readlines():
    print(dfs(int(i.strip()), 4))

import sys


def dfs(a, b):
    if a == 0:
        return 1
    elif b == 0 or a < 0:
        return 0
    return sum([dfs(a - i, b - 1) for i in range(10)])


for line in sys.stdin.readlines():
    print(dfs(int(line.strip()), 4))

- -table = {} -    global table -    if not a in table: -        if a == 0: -            return 1 -        elif b == 0 or a < 0: -            return 0 -        table[(a, b)] = sum([dfs(a - i, b - 1) for i in range(10)]) -    return table[(a, b)] +    if a == 0: +        return 1 +    elif b == 0 or a < 0: +        return 0 +    return sum([dfs(a - i, b - 1) for i in range(10)]) -for i in sys.stdin.readlines(): -    print(dfs(int(i.strip()), 4)) +for line in sys.stdin.readlines(): +    print(dfs(int(line.strip()), 4))