CF988A.Diverse Team

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Diverse Team

There are nn students in a school class, the rating of the ii-th student on Codehorses is aia_i. You have to form a team consisting of kk students (1kn1 \le k \le n) such that the ratings of all team members are distinct.

If it is impossible to form a suitable team, print "NO" (without quotes). Otherwise print "YES", and then print kk distinct numbers which should be the indices of students in the team you form. If there are multiple answers, print any of them.

Input

The first line contains two integers nn and kk (1kn1001 \le k \le n \le 100) — the number of students and the size of the team you have to form.

The second line contains nn integers a1,a2,,ana_1, a_2, \dots, a_n (1ai1001 \le a_i \le 100), where aia_i is the rating of ii-th student.

Output

If it is impossible to form a suitable team, print "NO" (without quotes). Otherwise print "YES", and then print kk distinct integers from 11 to nn which should be the indices of students in the team you form. All the ratings of the students in the team should be distinct. You may print the indices in any order. If there are multiple answers, print any of them.

Assume that the students are numbered from 11 to nn.

Note

All possible answers for the first example:

  • {1 2 5}
  • {2 3 5}
  • {2 4 5}

Note that the order does not matter.

Samples

5 3
15 13 15 15 12
YES
1 2 5 
5 4
15 13 15 15 12
NO
4 4
20 10 40 30
YES
1 2 3 4 

在线编程 IDE

建议全屏模式获得最佳体验