package com.inseop.forbaekjoon;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
String str1[] = br.readLine().split(" ");
String str2[] = br.readLine().split(" ");
int a = Integer.parseInt(str1[0]);
int b = Integer.parseInt(str1[1]);
for(int i = 0 ; i < a ; i++){
int c = Integer.parseInt(str2[i]);
if(c < b){
bw.write(String.valueOf( c )+ " ");
}
}
bw.flush();
bw.close();
}
}