#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<long long> vec;
  set<long long> se;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    vec.push_back(x);
    se.insert(x);
  }
  if (se.size() < k) {
    cout << "NO";
  } else {
    cout << "YES\n";
    int i = 0;
    for (auto it = se.begin(); i < k; it++, i++) {
      auto itr = find(vec.begin(), vec.end(), (*it));
      cout << (itr - vec.begin()) + 1 << " ";
    }
  }
}
