package yukicoder; import java.util.*; public class P573 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); long N = sc.nextLong(); final long mod = 1000000007; sc.close(); // fact long[] fact = new long[(int)N+1]; fact[0] = 1; for(int i=1; i=n-k+1; i--) { ans = (ans * i)%mod; } for(long i=k; 0