#include <bits/stdc++.h>
using namespace std;
int main() {
  map<int, int> m;
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    m[x] = i;
  }
  if (m.size() < k)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    int j = 1;
    for (map<int, int>::iterator i = m.begin(); i != m.end() && j <= k; i++) {
      cout << i->second << " ";
      j++;
    }
  }
  return 0;
}
