import math

# Перестановка - almastyru qaitalanbaityn oqiga 
def permutation(n):
    return math.factorial(n)

def permutation_example(n, m):
    

number = permutation(int(input()))
print(number)


