You are given an integer. Print the factorial of this number.
Input consists of a single integer , where
Print the factorial of .
For an input of you would print
Note: Factorials ofcan’t be stored even in a long long variable. Big integers must be used for such calculations. Languages like Java, Python, Ruby etc. can handle big integers, but we need to write additional code in C/C++ to handle huge values.
We recommend solving this challenge using BigIntegers.