#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
  int n, k, c = 0;
  cin >> n >> k;
  vector<int> v(n);
  set<int> s;
  for (int i = 0; i < n; i++) {
    cin >> v[i], s.insert(v[i]);
  }
  if (s.size() < k) return cout << "NO", 0;
  cout << "YES\n";
  for (auto ss : s) {
    if (c == k) return 0;
    for (int i = 0; i < n; i++) {
      if (v[i] == ss) {
        cout << i + 1 << ' ', c++;
        break;
      }
    }
  }
  return 0;
}
