fork download
  1. N_and_X=list(map(int,input().split()))
  2. A=list(map(int,input().split()))
  3. vacumlist=[]
  4. for i in A:
  5. if i< N_and_X[1]:
  6. vacumlist+=str(i)
  7. print(*vacumlist)
Success #stdin #stdout 0.03s 9204KB
stdin
1 11
10
stdout
1 0