#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, k, c = 0;
  cin >> n >> k;
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (!m[x]) m[x] = i + 1;
  }
  ostringstream o;
  for (map<int, int>::iterator it = m.begin(); it != m.end(); it++) {
    if (it->second > 0) {
      o << it->second << " ";
      c++;
      if (c == k) break;
    }
  }
  if (c < k)
    cout << "NO\n";
  else {
    cout << "YES\n" << o.str();
  }
}
