def recursion(N): if N == 1 or N == 0: return 1 else: return recursion(N-1) * N print(recursion(int(input())))