n=gets.to_i a=1 for i in 1..n a*=(2*i-1)*i*i a%=1000000007 end puts a