Problem: Tod is very much focus about his English subject but now he is in trouble because he have to do his Math homework but also have to go for English classes so he asks you for help to solve his Math homework question.

You are given a  Natural number(N) you have to print Factorial of the Prime number present in the (S) series(1 ≤ S ≤ N)
INPUT

Natural number N ( 1 ≤ N ≤ 100)

OUTPUT

Factorial of all the prime number present in the series

Series contain all  element between (1 ≤ S ≤ N) 

SAMPLE INPUT
4

SAMPLE OUTPUT
2
6

Explanation

INPUT

4

OUTPUT

2 

6

In this problem series will be (1,2,3,4)

So, Prime number are(2,3)

Factorial of 2 (2*1)=2

Factorial of 3 (321)=6

Solution (in PYTHON):

Solution:
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'
def isPrime(num):
	if(num == 2):
		return 1
	if(num == 3):
		return 1
	c = 3
	if(num % 2 == 0):
		return 0
	while c <= int(num / 2):
		if(num % c == 0):
			return 0
		c = c + 2
	
	return 1	
c1 = int(raw_input())
c = 2
while c <= c1:
	ans = 1
	if(isPrime(c)):
	
		for i in range(1,c+1):
			ans = ans * i
		print ans
	c = c + 1