import math n = map(int, input()) print(math.factorial(n))