while True: try: n,k = map(int,input().split(' ')) l = input().split(' ') l = [int(i) for i in l] l = sorted(l) ...