package yukicoder; import java.util.Scanner; public class N554 { public static void main(String[] args) { long e=0;//evennumber long o=1;//oddnumber int p=1; Scanner sc=new Scanner(System.in); int n=sc.nextInt(); long ans=0; if(n==1) { ans=1; } else { do { ans=0; p++; if(p%2==0) { ans=p*o; e+=ans; } else { ans=p*e; o+=ans; } }while(p!=n); } System.out.println(ans%(int)(Math.pow(10, 7)+7)); } }