n = int(input()) def factorial(n): if n <= 1: return 1 #0 혹은 1일 경우 1 return return n*factorial(n-1) print(factorial(n))