#include using namespace std; using ll = long long; #include using namespace atcoder; using mint=modint1000000007; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N; cin>>N; vector A(N+1,0); for(int i=0;i>a; A[min(a,N)]++; } vector DP(N+1,0); vector F(N+1,1); DP[0]=1; for(int i=0;i NDP=DP; for(int j=0;j