while True:

	try:

		cnt=0

		i=int(eval(input()))

		for a in range(10):

			for b in range(10):

				for c in range(10):

					for d in range(10):

						if a+b+c+d==i:

							cnt+=1

		print(cnt)

	except:

		break
x=[0]*51

for a in range(10):

	for b in range(10):

		for c in range(10):

			for d in range(10):

				x[a+b+c+d]+=1

while True:

	try:

		print((x[int(eval(input()))]))

	except:

		break
while True:
    try:
        cnt = 0
        i = int(eval(input()))
        for a in range(10):
            for b in range(10):
                for c in range(10):
                    for d in range(10):
                        if a + b + c + d == i:
                            cnt += 1
        print(cnt)
    except:
        break

x = [0] * 51
for a in range(10):
    for b in range(10):
        for c in range(10):
            for d in range(10):
                x[a + b + c + d] += 1
while True:
    try:
        print((x[int(eval(input()))]))
    except:
        break

+x = [0] * 51 +for a in range(10): +    for b in range(10): +        for c in range(10): +            for d in range(10): +                x[a + b + c + d] += 1 -        cnt = 0 -        i = int(eval(input())) -        for a in range(10): -            for b in range(10): -                for c in range(10): -                    for d in range(10): -                        if a + b + c + d == i: -                            cnt += 1 -        print(cnt) +        print((x[int(eval(input()))]))