def fact (n) if n == 0 return 1 else return n * fact(n - 1) end end n = readline.to_i p(fact(n))