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