def fact(x):
    j = 1
    for i in range(1, x + 1):
        j *= i
    
    return j

x = int(input())

print(fact(x))