#include <bits/stdc++.h>
using namespace std;
struct stud {
  int num, a;
};
class cmp1 {
 public:
  bool operator()(stud a, stud b) const { return a.a < b.a; }
};
int main() {
  int n, k;
  cin >> n >> k;
  set<stud, cmp1> sett;
  for (int i = 1; i <= n; ++i) {
    stud one;
    cin >> one.a;
    one.num = i;
    sett.insert(one);
  }
  if (sett.size() < k) {
    cout << "NO";
  } else {
    cout << "YES"
         << "\n";
    for (int i = 0; i < k; ++i) {
      stud p = *sett.begin();
      sett.erase(sett.begin());
      cout << p.num << " ";
    }
  }
  return 0;
}
