Coach Marta is putting together a relay team. She timed every student who tried out, and now she wants to pick the fastest ones and list their times from fastest to slowest, so she can decide the running order.
Given students' times and a number , find the smallest times among them and print them in increasing order.
The first line contains two integers and — the number of students who tried out and the number of runners Marta needs for the team (1 \leq k \leq n \leq 1000).
The second line contains integers t_1, t_2, \ldots, t_n — the time (in seconds) each student ran, 1 \leq t_i \leq 10^6. Times may repeat.
Print integers — the times of the fastest students, in increasing order.
Example
Example 2