Snuke loves working out. He is now exercising N times.  Before he starts exercising, his _power_ is 1. After he exercises for the i-th time, his power gets multiplied by i.  Find Snuke's power after he exercises N times. Since the answer can be extremely large, print the answer modulo 10^{9}+7.
n = int(input())

x = (10**9 + 7)

for i in range(1,n+1):
  n = n * i
  
  
if n < x:
  print(n)
  
elif n >=x :
  print(n % x)
import math
print(math.factorial(int(input())) % ((10**9) +7))
