#include <bits/stdc++.h>
using namespace std;
long long ans[19999];
int main() {
  map<long long, long long> pos;
  vector<long long> kos;
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    cin >> ans[i];
    if (!pos[ans[i]]) {
      pos[ans[i]]++;
      if (kos.size() == k) continue;
      kos.push_back(i);
    }
  }
  if (kos.size() == k) {
    cout << "YES" << endl;
    for (int i = 0; i < kos.size(); i++) cout << kos[i] << " ";
    cout << endl;
  } else
    cout << "NO" << endl;
}
