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