using System; using System.Linq; using System.Text; using System.Numerics; using System.Collections; using System.Collections.Generic; public class Program { static int MOD = 1000000007; static long f (int n) { if (n == 1) { return 1; } long a = 0; long b = 1; for (int i = 2; i < n+1; ++i) { if (i % 2 == 0) { a += (i * b) % MOD; } else { b += (i * a) % MOD; } } return (n % 2 == 0 ? b*n : a*n) % MOD; } static void Main (string[] args) { int N = int.Parse(Console.ReadLine()); Console.WriteLine(f(N)); } }