#include <iostream>
using namespace std;
int main(void)
{
int n, x;
cin >> n >> x;
while(n--)
{
int a;
cin >> a;
if(a < x)
cout << a << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKICAgIGludCBuLCB4OwogICAgY2luID4+IG4gPj4geDsKICAgIAogICAgd2hpbGUobi0tKQogICAgewogICAgICAgIGludCBhOwogICAgICAgIGNpbiA+PiBhOwogICAgICAgIAogICAgICAgIGlmKGEgPCB4KQogICAgICAgICAgICBjb3V0IDw8IGEgPDwgIiAiOwogICAgfQogICAgcmV0dXJuIDA7Cn0=