#include <bits/stdc++.h>
using namespace std;
long long n, m, k;
string str;
void run() {
  cin >> n >> k;
  vector<int> nums;
  int freq[101];
  memset(freq, 0, sizeof(freq));
  ;
  for (int i = 0; i < n; i++) {
    int entry;
    cin >> entry;
    if (freq[entry] == 0) {
      nums.push_back(i + 1);
    }
    freq[entry] = 1;
  }
  if ((int)nums.size() < k) {
    cout << setprecision(30) << "NO" << endl;
    return;
    ;
  }
  cout << setprecision(30) << "YES" << endl;
  ;
  for (int i = 0; i < k; i++) {
    cout << setprecision(30) << nums[i] << " ";
    ;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  int tests = 1;
  for (int i = 1; i <= tests; i++) {
    run();
  }
  return 0;
}
