Relay Team#12535

Relay Team

1 second
256 megabytes
Very easy

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.

Input

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.

Output

Print integers — the times of the fastest students, in increasing order.

Examples

Example

Loading
Loading

Example 2

Loading
Loading