from yogi import *

for n in tokens(int):
    print(factorial(n))
