import sysinput = sys.stdin.readlineN, M = map(int, input().split())numbers = list(map(int, input().split()))numbers.sort()box = []def compare(a, b): if a > b: return False return Truedef backTracking(depth): if depth == M: print(' '.join(map(str, box))) return for i in range(N): if depth == 0 or compare(box[depth-1], numbers[i]): box.ap..