백준 10871번
inputStr = input()
inputStrArr = input()
num = [int(x) for x in inputStr.split(' ')]
arr = [int(x) for x in inputStrArr.split(' ')]
N = num[0]
X = num[1]
temp = []
for i in range(0, N):
if (X > arr[i]):
temp.append(arr[i])
print(' '.join([str(x) for x in temp]))