import math while 1:print(math.factorial(int(input())))