#include <bits/stdc++.h>
using namespace std;
int main() {
  set<int> d;
  vector<int> dd;
  int n, k, x;
  cin >> n;
  cin >> k;
  for (int i = 0; i < n; i++) {
    cin >> x;
    d.insert(x);
    dd.push_back(x);
  }
  if (d.size() < k) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    for (int a : d) {
      for (int i = 0; i < n; i++) {
        if (dd[i] == a) {
          cout << i + 1 << ' ';
          break;
        }
      }
      --k;
      if (k == 0) {
        break;
      }
    }
  }
  return 0;
}
