#include <bits/stdc++.h> #define endl "\n" using namespace std; int n,k,c=1; const int N=1000000007; int main(){ ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); //freeopen(".in","r",stdin); //freeopen(".out","w",stdout); cin>>n>>k; for(int i=n-k+1;i<=n;i++){c=1LLci%N;} cout<<c; return 0; }