package yukicoder; import java.util.Scanner; public class No554 { private int n; private long osum = 1; private long esum = 0; public static void main(String[] args) { No554 main = new No554(); main.run(); } private void run() { Scanner sc = new Scanner(System.in); n = sc.nextInt(); for(int i = 2; i < n; i++) { if(i % 2 == 0) { esum += i * osum % 1000000007; } else { osum += i * esum % 1000000007; } } if(n == 1) { System.out.println(1); return; } else if(n % 2 == 0) { System.out.print(n * osum % 1000000007); return; } else { System.out.println(n * esum % 1000000007); } } }