#include<bits/stdc++.h>
using namespace std;
int tong[609];
int main(){
int n,w;
cin>>n>>w;
for(int i=1;i<=n;i++){
int x;
cin>>x;
tong[x]++;
for(int p=600;p>=0;p--){
int num=0;
if(tong[p]!=0){
num+=tong[p];
if(num>=max(1,i*w/100)){
cout<<p<<" ";
continue;
}
}
}
}
}
帮个忙呗