n = int(input())

o = 1

for i in range(2, n + 1):
    o *= i

print(o)