import java.util.Scanner; public class No554 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final long mod = 1000000007; int n = sc.nextInt(); long a[] = new long[n+1]; a[0] = 0; a[1] = 1; for(int i = 2;i <= n;i++) { for(int j = 1;j < i;j += 2) { a[i] += i * a[i-j] % mod; } a[i] %= mod; } System.out.println(a[n]); } }