n,m=map(int,input().split()) X=list(map(int,input().split())) Y=list(map(int,input().split())) Y.sort() for x in X: cnt=0 for y in Y: if x