#10871 N,X=map(int, input().split()) a=list(map(int,input().split())) for i in range(N): if X>a[i]: print(a[i], end=" ")
비교적 간단했다!