https://www.acmicpc.net/problem/10871
import java.util.*
import java.lang.String.format
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var n=s.nextInt()
var x=s.nextInt()
for(i in 0 until n){
var a=s.nextInt()
if(a<x) print(format("%d ",a))
}
}