https://www.acmicpc.net/problem/10871
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int x=s.nextInt();
for(int i=0;i<n;i++){
int a=s.nextInt();
if(a<x) System.out.format("%d ",a);
}
}
}