n,m = map(int,input().split()) x = list(map(int,input().split())) y = sorted(list(map(int,input().split()))) for i in x: for j in y: if i