while True:
    m = 0
    try:
        n = int(input().strip())
        for a in range(10001):
            if n - a <0:
                break
            for b in range(10001):
                if n - (a+b) <0:
                    break
                for c in range(10001):
                    if n - (a+b+c) <0:
                        break
                    for d in range(10001):
                        if n - (a+b+c+d) <0:
                            break
                        if a+b+c+d == n:
                            m += 1
        print(m)
    except EOFError:
        break