#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n];
  vector<int> ans;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (a[j] == a[i]) {
        a[j] = 0;
      }
    }
  }
  int l = 0;
  for (int i = 1; i <= n; i++) {
    if (a[i] != 0) {
      l++;
      ans.push_back(i);
    }
  }
  if (l < k) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    for (int i = 0; i < k; i++) {
      cout << ans[i] << " ";
    }
  }
  return 0;
}
