A logistics feed contains shipment codes. Report the k codes that occur most frequently. Order the reported codes by descending frequency; codes that share the same frequency are ordered by ascending code value. It is guaranteed that k does not exceed the number of distinct codes, so the answer is uniquely determined.
Input format
Line 1: two integers n and k.
Line 2: n space-separated integers, the shipment codes.
Output format
A single line: the k selected codes, space-separated, in the order described above.
Constraints
- 1 <= n <= 40
- 1 <= k <= number of distinct codes
- 1 <= each code <= 1000000