n=gets.to_i a1=1 a2=0 a1sum=1 a2sum=0 mod=10**9+7 (n).times{|i| m=i+2 if i%2==0 a2=(a1sum*m)%mod a2sum=(a2sum+a2)%mod else a1=(a2sum*m)%mod a1sum=(a1sum+a1)%mod end } if n%2==0 puts a2 else puts a1 end