n = int(input()) val = 1 for i in range(n, 1, -1): val *= i print(val)