#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long double n, k;
  cin >> n >> k;
  set<long double> se;
  map<long double, long double> mp;
  for (int i = 1; i <= n; ++i) {
    long double v;
    cin >> v;
    se.insert(v);
    mp[v] = i;
  }
  if (se.size() >= k) {
    cout << "YES\n";
    int j = 0;
    for (int i : se) {
      j++;
      cout << mp[i] << " ";
      if (j == k) break;
    }
  } else
    cout << "NO\n";
  return 0;
}
