#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; const int inf=1<<30; const ll INF=1LL<<62; typedef pair P; typedef pair PP; const ll MOD=998244353; const int dy[]={0,1,0,-1}; const int dx[]={1,0,-1,0}; int main(){ int N,M; cin>>N>>M; vector A(N); for(int i=0;i>A[i]; } vector ans(N+1,0); const int MAXA=2*100000; vector cnt_appear(MAXA+1,0); for(int k=1;k<=N;k++){ set st; cnt_appear.assign(MAXA+1,0); for(int t=0;t<=k;t++){ st.insert(t); } for(int t=0;t=M){ ans[k]++; } for(int t=k;t=M){ ans[k]++; } } } for(int k=1;k<=N;k++){ cout<