#include<bits/stdc++.h>
using namespace std;
const int N=100005,inf=9999999;
long long n,w,x,f[N];
int main(){
//freopen("live.in","r",stdin);
//freopen("live.out","w",stdout);
scanf("%d%d",&n,&w);
for(int i=1;i<=n;++i){
scanf("%d",&x);
f[x]++;
int y,id,sum=0;
double k;
k=i/100.0*w;
y=max(1,(int)k);
for(int j=600;j>=-1;--j){
if(f[j]){
sum+=f[j];
if(y<=sum){
printf("%d ",j);
break;
}
}
}
}
return 0;
}