#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int arr[n];
  vector<int> v;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    v.push_back(arr[i]);
  }
  for (int i = 0; i < v.size(); i++) {
    for (int j = 0; j < v.size(); j++) {
      if (v[i] == v[j] && i != j) {
        v.erase(v.begin() + j);
      }
    }
  }
  if (v.size() < k) {
    cout << "NO" << endl;
  } else {
    int cnt = 0;
    cout << "YES" << endl;
    for (int i = 0; i < v.size(); i++) {
      for (int j = 0; j < n; j++) {
        if (v[i] == arr[j]) {
          cout << j + 1 << " ";
          cnt++;
          break;
        }
        if (cnt == k) {
          break;
        }
      }
      if (cnt == k) {
        break;
      }
    }
  }
  return 0;
}
