#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  map<int, int> mp;
  cin >> n >> k;
  int arr[n], a[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    mp.insert(make_pair(arr[i], i + 1));
  }
  int j = 0;
  for (auto itr = mp.begin(); itr != mp.end(); itr++) {
    a[j] = (*itr).second;
    j++;
  }
  if (j < k)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (int i = 0; i < k; i++) {
      cout << a[i] << " ";
    }
    cout << endl;
  }
}
