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:
import sys

def fact(n):
	index=0
	#a=[0 for i in xrange(200)]
	a=[]
	a.append(1)
	while(n>=2):
		temp=0
		i=0
		while(i<=index):
			temp=a[i]*n+temp
			a[i]=temp%10
			temp=temp/10
			i+=1
		while temp >0:
			a.append(temp%10)
			temp/=10
			index+=1
		n-=1
	number=''.join(str(e) for e in a)
	print number[::-1]
		

prime_numbers=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
n=int(input())
for i in prime_numbers:
	if i<=n:
		fact(i)
	else:
		break