N, X = map(int, input().split()) A = list(map(int, input().split())) for i in range(N): # N번 반복 if A[i] < X: print(A[i], end=" ")