#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, cnt = 0;
  cin >> n >> k;
  int a[n];
  int s[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    s[i] = a[i];
  }
  int swap;
  for (int i = 0; i < n - 1; i++) {
    for (int j = 0; j < n - 1 - i; j++) {
      if (a[j] > a[j + 1]) {
        swap = a[j];
        a[j] = a[j + 1];
        a[j + 1] = swap;
      }
    }
  }
  for (int i = 0; i < n - 1; i++) {
    if (a[i] != a[i + 1]) cnt += 1;
  }
  if (cnt >= k - 1) {
    cout << "YES" << endl;
    int kk = 0;
    for (int i = 0; i < n; i++) {
      if (kk == k) break;
      if (i == 0 || a[i] != a[i - 1]) {
        for (int j = 0; j < n; j++) {
          if (a[i] == s[j]) {
            kk++;
            cout << j + 1 << " ";
            break;
          }
        }
      }
    }
  } else
    cout << "NO" << endl;
  return 0;
}
