#include <bits/stdc++.h>
int main() {
  int num, k;
  std::cin >> num >> k;
  int arr[107]{}, l;
  for (int x = 1; x <= num; x++) {
    std::cin >> l;
    if (!arr[l]) arr[l] = x;
  }
  int count = 0;
  for (int x = 0; x < 107; x++) count += (arr[x] > 0);
  if (count < k)
    std::cout << "NO";
  else {
    int q = 0;
    std::cout << "YES\n";
    for (int x = 106; x >= 0; x--) {
      if (arr[x]) {
        std::cout << arr[x] << " ";
        q++;
      }
      if (q == k) break;
    }
  }
}
