#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  map<int, int> mp;
  vector<int> v;
  int cpt = 0;
  for (int i = 0; i < n && cpt < k; i++) {
    int x;
    cin >> x;
    if (mp[x] == 0) {
      mp[x] = 1;
      v.push_back(i + 1);
      cpt++;
    }
  }
  if (cpt == k) {
    cout << "YES" << endl;
    for (int i = 0; i < k; i++) cout << v[i] << " ";
  } else
    cout << "NO" << endl;
}
