#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  int b[101] = {0};
  int d[101] = {0};
  cin >> n >> k;
  int c[n + 1];
  int aa[k];
  int hey = 0;
  for (int i = 1; i <= n; i++) {
    cin >> c[i];
    b[c[i]]++;
    d[c[i]] = i;
  }
  int count = 0;
  for (int i = 1; i <= 100; i++) {
    if (b[i] > 0) count++;
  }
  if (count >= k) {
    cout << "YES" << endl;
    for (int i = 1; i <= 100; i++) {
      if (b[i] > 0) {
        aa[hey] = d[i];
        hey++;
      }
    }
    sort(aa, aa + k);
    for (int i = 0; i < k; i++) cout << aa[i] << " ";
    cout << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
