import math

N = int(eval(input()))

print((math.factorial(N)%(10**9+7)))
ans=1

n=int(eval(input()))

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

    ans*=i

    ans=ans%(10**9+7)

print(ans)
import math

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

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

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