#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  int cont[101] = {0};
  for (int i = 0; i < n; i++) cont[arr[i]]++;
  int cnt = 0;
  for (int i = 0; i <= 100; i++)
    if (cont[i] > 0) cnt++;
  if (cnt >= k) {
    int conts = 0;
    printf("YES\n");
    for (int i = 0; i < n; i++) {
      if (cont[arr[i]] > 0) {
        cont[arr[i]] = 0;
        cout << i + 1 << " ";
        conts++;
        if (conts == k) break;
      }
    }
  } else
    printf("NO\n");
  return 0;
}
