N, X = map(int, input().split()) number_list = list(map(int, input().split())) print(*[number for number in number_list if number < X])