import math x = int(input()) print(math.factorial(x))