import math



N = int(eval(input()))



print((math.factorial(N) % (1000000000 + 7)))

import math



N = int(eval(input()))



p = 1

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

  p *= i

  p = p % (1000000000 + 7)

  

print(p)

import math

N = int(eval(input()))
print((math.factorial(N) % (1000000000 + 7)))

import math

N = int(eval(input()))
p = 1
for i in range(2, N + 1):
    p *= i
    p = p % (1000000000 + 7)
print(p)

-print((math.factorial(N) % (1000000000 + 7))) +p = 1 +for i in range(2, N + 1): +    p *= i +    p = p % (1000000000 + 7) +print(p)