#program to find factorial of a number
n=int(raw_input('Enter the number '))
fact = 1
while n :
    fact = fact * n
    n=n-1
print "Factorial of number is ",fact