a,b=map(int,input().split()) d=[] for i in range(a): c=input().split() if len(c)==a: for j in range(a): if int(c[j]) < b: d.append(c[j]) print(d) else: break
10 5 1 10 4 9 2 3 8 5 7 6
['1', '4', '2', '3']
Traceback (most recent call last): File "./prog.py", line 4, in <module> EOFError: EOF when reading a line