n = int(input())

x = 1

while n > 0:
    x = x * n
    
    n -= 1

print(x)