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