#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007;
int main() {
  int n, k;
  cin >> n >> k;
  set<long long> s;
  set<long long>::iterator itr;
  long long a;
  map<long long, int> mp;
  for (int i = 0; i < n; i++) {
    cin >> a;
    mp[a] = i + 1;
    s.insert(a);
  }
  long long p;
  int i = 0;
  if (s.size() >= k) {
    cout << "YES\n";
    for (itr = s.begin(); itr != s.end(); ++itr) {
      p = *itr;
      cout << mp[p] << " ";
      i++;
      if (i == k) break;
    }
  } else
    cout << "NO";
  return 0;
}
