n = int(input()) ans = 1 while n>1: ans = ans*n n -= 1 print(ans)