

while True:

	try:

		n=int(eval(input()))

		cnt=0

		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==n:

							cnt+=1

		print(cnt)

	except EOFError:

		break


while True:

	try:

		n=int(eval(input()))

		cnt=0

		for a in range(10):

			for b in range(10):

				for c in range(10):

					d = n-(a+b+c)

					if 0<=d<=9:

						cnt+=1

		print(cnt)

	except EOFError:

		break
while True:
    try:
        n = int(eval(input()))
        cnt = 0
        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 == n:
                            cnt += 1
        print(cnt)
    except EOFError:
        break

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

-                    for d in range(10): -                        if a + b + c + d == n: -                            cnt += 1 +                    d = n - (a + b + c) +                    if 0 <= d <= 9: +                        cnt += 1