#include <bits/stdc++.h>
using namespace std;
template <typename T>
string to_string(T str) {
  stringstream stream;
  stream << str;
  return stream.str();
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  map<int, int> m;
  vector<int> v;
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    m[x]++;
    if (m[x] == 1) {
      v.push_back(i + 1);
    }
  }
  if (v.size() >= k) {
    cout << "YES" << endl;
    for (int i = 0; i < k; i++) cout << v[i] << " ";
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
