#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n];
  set<int> s;
  vector<int> v;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    s.insert(a[i]);
    v.push_back(a[i]);
  }
  if (s.size() >= k) {
    cout << "YES" << '\n';
    for (int i = 0; i < n; ++i) {
      if (s.find(a[i]) != s.end()) {
        if (k > 0) {
          s.erase(a[i]);
          cout << (i + 1) << " ";
          k--;
        }
      }
    }
  } else {
    cout << "NO" << '\n';
  }
  return 0;
}
