N = gets.to_i ans = ((1..N).inject{|memo, n| ((memo * (2 * n - 1) * (2 * n)) / 2) % 1000000007}) puts ans