import sys
import itertools as it
line = sys.stdin.readlines()
for n in line:
    n = int(n)
    num = {i for i in range(0,n+1)}
    count = 0
    for i in it.product(num, repeat=4):
        if sum(i) == n:
            count += 1
    print(count)