#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, p[101], cnt, i, j;
  cin >> n >> k;
  for (i = 0; i <= 100; i++) p[i] = -1;
  vector<int> a(n);
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (p[a[i]] == -1) p[a[i]] = i;
  }
  cnt = 0;
  for (i = 0; i < 101; i++)
    if (p[i] != -1) cnt++;
  if (cnt >= k) {
    cout << "YES\n";
    for (i = 0, j = 0; j < k; i++)
      if (p[i] != -1) {
        cout << p[i] + 1 << " ";
        j++;
      }
  } else
    cout << "NO";
  return 0;
}
