import math

print((math.factorial(int(eval(input())))%(10**9+7)))
N = int(eval(input()))

MOD = 10 ** 9 + 7



answer = 1

for i in range(1, N + 1):

  answer = (answer * i) % MOD

  

print(answer)
import math

print((math.factorial(int(eval(input()))) % (10**9 + 7)))

N = int(eval(input()))
MOD = 10**9 + 7
answer = 1
for i in range(1, N + 1):
    answer = (answer * i) % MOD
print(answer)

-import math - -print((math.factorial(int(eval(input()))) % (10**9 + 7))) +N = int(eval(input())) +MOD = 10**9 + 7 +answer = 1 +for i in range(1, N + 1): +    answer = (answer * i) % MOD +print(answer)