#include using namespace std; const int mod=1e9+7; int dp[1000001]; int N,K; int main(){ scanf("%d%d",&N,&K); for(int i=0;i