#include <bits/stdc++.h>
using namespace std;
int ch[100000];
int main() {
  set<int> s;
  int n, k;
  cin >> n;
  cin >> k;
  int a[n];
  vector<int> v;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    s.insert(a[i]);
    if (ch[a[i]] == 0) {
      ch[a[i]]++;
      v.push_back(i);
    }
  }
  if (s.size() < k) {
    cout << "NO";
    return 0;
  } else {
    cout << "YES" << endl;
    for (int i = 0; i < k; i++) {
      cout << v[i] + 1 << " ";
    }
  }
}
