import math

print((math.factorial(int(eval(input()))) % 1000000007))
n = int(eval(input()))

power = 1

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

  power = power * i % (1000000007)

print(power)
import math

print((math.factorial(int(eval(input()))) % 1000000007))

n = int(eval(input()))
power = 1
for i in range(1, n + 1):
    power = power * i % (1000000007)
print(power)

-import math - -print((math.factorial(int(eval(input()))) % 1000000007)) +n = int(eval(input())) +power = 1 +for i in range(1, n + 1): +    power = power * i % (1000000007) +print(power)