from math import factorial as fc

a = int(eval(input()))

print((fc(a)%(10**9+7)))
n = int(eval(input()))

m = 10**9+7

ans = 1

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

  ans *= i

  ans %= m

print(ans)
from math import factorial as fc

a = int(eval(input()))
print((fc(a) % (10**9 + 7)))

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

-from math import factorial as fc - -a = int(eval(input())) -print((fc(a) % (10**9 + 7))) +n = int(eval(input())) +m = 10**9 + 7 +ans = 1 +for i in range(1, n + 1): +    ans *= i +    ans %= m +print(ans)