Problem:


Factorial

Write a program which reads an integer n and prints the factorial of n. You can assume that n ≤ 20.

Input

An integer n (1 ≤ n ≤ 20) in a line.

Output

Print the factorial of n in a line.

Sample Input

5

Output for the Sample Input

120



Sample input:
5


Sample output:
120

Submission status: Runtime Error

Solution code:
# -*- coding:shift-jis -*-
x=input()
def f(n):
 if n==0:return 1
 return f(n-1)*n
print(f(int(n)))

Submission status: Runtime Error

Solution code:
ans=1
for i in range(1,int(raw_input()+1):
    ans*=i
print ans

Submission status: Runtime Error

Solution code:
from math import factorical
print(factorical(int(input())))

Submission status: Runtime Error

Solution code:
from math import factorical
print(factorical(int(input()))

Submission status: Runtime Error

Solution code:
from math import factorial
print(factorial(int(input()))

Submission status: Runtime Error

Solution code:

import math

num = int(input)
print(math.factorial(num))

Submission status: Runtime Error

Solution code:
from math import factorial
n = int(input())
print factorial(n)

Submission status: Runtime Error

Solution code:
def factorial(n):
    if n == 1:
        return 1
    else:
        return n * factorial(n-1)
n=input()
print(factorial(n))

Submission status: Runtime Error

Solution code:
n = input()
answer = 1
while != 1:
	answer *= n
	n -= 1
print answer

Submission status: Runtime Error

Solution code:
'''
Created on Mar 22, 2013

@author: wukc
'''

from numpy import product
from sys import stdin

n=int(stdin.readline())
print(product(range(1,n+1)))