include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int n,m;
priority_queue[HTML_REMOVED],greater[HTML_REMOVED] > q;
int main()
{
cin>>n>>m;
for(int i=1;i<=n;i)
{
int x;
cin>>x;
q.push(x);
}
for(int j=1;j<=m;j)
{
cout<<q.top()<<” “;
q.pop();
}
}