while True: try: a = list(map(int,input().split(" "))) d = list(map(int,input().split(" "))) d.sort() print(" ".join(map(str,d[:a[1]]))) except: &...