#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, k;
  cin >> n >> k;
  set<long long int> s;
  map<long long int, long long int> mp;
  long long int x;
  for (long long int i = 0; i < n; i++) {
    cin >> x;
    s.insert(x);
    mp[x] = i + 1;
  }
  if (s.size() < k) {
    cout << "NO" << endl;
    return 0;
  } else {
    cout << "YES" << endl;
    map<long long int, long long int>::iterator it;
    long long int c = 0;
    for (it = mp.begin(); it != mp.end(); it++) {
      if (c != k) {
        cout << it->second << " ";
        c++;
      } else
        break;
    }
  }
  return 0;
}
