def fact(n): return 1 if n < 2 else n * fact(n-1) print("{}".format(fact(int(input().strip()))))