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%((long)Math.pow(10, 9)+7); e+=ans; } else { ans=p*e%((long)Math.pow(10, 9)+7); o+=ans; } }while(p!=n); } System.out.println(ans%((long)Math.pow(10, 9)+7)); } }