#include <bits/stdc++.h>
using namespace std;
int main() {
  int number, num;
  cin >> number >> num;
  int arr[number];
  vector<int> vec;
  vector<int> v;
  int arr1[number];
  vector<int> ve;
  for (int i = 0; i < number; i++) {
    cin >> arr[i];
    ve.push_back(arr[i]);
  }
  sort(arr, arr + number);
  for (int i = 0; i < number; i++) {
    if (arr[i] == arr[i + 1]) {
      continue;
    } else {
      vec.push_back(arr[i]);
    }
  }
  for (int j = 0; j < vec.size(); j++) {
    for (int i = 0; i < ve.size(); i++) {
      if (vec[j] == ve[i]) {
        v.push_back(i + 1);
        break;
      }
    }
  }
  if (num > v.size()) {
    cout << "NO";
  } else {
    cout << "YES" << endl;
    for (int i = 0; i < num; i++) {
      cout << v[i] << " ";
    }
  }
  return 0;
}
