x=int(input().split()[1])a=input().split()r=[]for i in a: if int(i)<x: r+=iprint(' '.join(r))
1 20 19
1 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!