#include using namespace std; typedef long long ll; int popcnt(ll n) { int cnt=0; while (n) { cnt++; n&=n-1; } return cnt; } int main() { int mod=1e9+7; int n,k; cin>>n>>k; ll fact[n+1]; fact[0]=1; for (int i=1;i<=n;i++) fact[i]=i*fact[i-1]%mod; ll a[k+2]; for (int i=0;i>a[i]; a[k]=0; a[k+1]=(1LL<