def main(): n= int(input()) dp=[[2,2],[1,1]] div =7+10**9 for i in range(3,n+1,2): dp[1][0]=(i *dp[0][1])%div dp[1][1]+=dp[1][0] dp[0][0]=((i+1) * dp[1][1])%div dp[0][1]+=dp[0][0] if n%2 == 0:print(dp[0][0]) else:print(dp[1][0]) main()