#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
int n, x, ok=0, a ;
while(cin >> n >> x && n!=0 || x!=0 )
{
ok=0;
for(int i=0;i<n;i++)
{
cin >> a ;
if(a>=x && ok==0)
{
cout << x << * *<< a << * * ;
ok=1 ;
}
else
cout << a << * *;
}
if(ok==0)
cout << x ;
cout << endl ;
}
return 0 ;
}