import java.util.*;
import java.lang.*;
import java.io.*;
class Runners
{
{
//Описание переменных для хранения входных данных./
Scanner in
= new Scanner
(System.
in); int n = in.nextInt();
int c = in.nextInt();
int[] counters = new int[c]; //Массив номеров бегунов.
int k = 0;
double[] x = new double[n]; //Описание массива для хранения входных данных.//
for (int i = 0; i < n; i++)
x[i] = in.nextDouble();
for (int i = 0; i < c; i++)
{
double minn
= Double.
POSITIVE_INFINITY; int mini
= 0; for (int j = 0; j < n; j++) //Цикл для нахождения минимального значения.
{
if (x[j] <= minn)
{
mini = j;
minn = x[j];
}
}
counters[i] = mini;
x
[counters
[i
]] = Double.
POSITIVE_INFINITY; }
Arrays.
sort(counters,
0, c
); //Сортировка номеров бегунов for (int i = 0; i < c ; i ++)
System.
out.
printf(counters
[i
] + 1 + " "); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBSdW5uZXJzCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8v0J7Qv9C40YHQsNC90LjQtSDQv9C10YDQtdC80LXQvdC90YvRhSDQtNC70Y8g0YXRgNCw0L3QtdC90LjRjyDQstGF0L7QtNC90YvRhSDQtNCw0L3QvdGL0YUuLwoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWludCBuID0gaW4ubmV4dEludCgpOwoJCWludCBjID0gaW4ubmV4dEludCgpOwoJCWludFtdIGNvdW50ZXJzID0gbmV3IGludFtjXTsgLy/QnNCw0YHRgdC40LIg0L3QvtC80LXRgNC+0LIg0LHQtdCz0YPQvdC+0LIuCgkJaW50IGsgPSAwOyAKCQlkb3VibGVbXSB4ID0gbmV3IGRvdWJsZVtuXTsgLy/QntC/0LjRgdCw0L3QuNC1INC80LDRgdGB0LjQstCwINC00Lv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