r = range

while True:

    try:

        n = int(eval(input()))

        ans = []

        ans = [(a,b,c,d) for a in r(10) for b in r(10) for c in r(10) for d in r(10) if a+b+c+d==n and (a,b,c,d) not in ans]

        print((len(ans)))

    except:

        break
while True:

    try:

        n = int(eval(input()))

    except:

        break

    ans = 0

    for a in range(10):

        for b in range(10):

            for c in range(10):

                d = n - (a + b + c)

                ans += 0 <= d <= 9

    print(ans)



r = range
while True:
    try:
        n = int(eval(input()))
        ans = []
        ans = [
            (a, b, c, d)
            for a in r(10)
            for b in r(10)
            for c in r(10)
            for d in r(10)
            if a + b + c + d == n and (a, b, c, d) not in ans
        ]
        print((len(ans)))
    except:
        break

while True:
    try:
        n = int(eval(input()))
    except:
        break
    ans = 0
    for a in range(10):
        for b in range(10):
            for c in range(10):
                d = n - (a + b + c)
                ans += 0 <= d <= 9
    print(ans)

-r = range -        ans = [] -        ans = [ -            (a, b, c, d) -            for a in r(10) -            for b in r(10) -            for c in r(10) -            for d in r(10) -            if a + b + c + d == n and (a, b, c, d) not in ans -        ] -        print((len(ans))) +    ans = 0 +    for a in range(10): +        for b in range(10): +            for c in range(10): +                d = n - (a + b + c) +                ans += 0 <= d <= 9 +    print(ans)