#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
constexpr ll INF = 1e18;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  ;
  int n, k;
  cin >> n >> k;
  map<int, int> s;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    s[x] = i + 1;
  }
  if (s.size() >= k) {
    cout << "YES\n";
    auto it = s.begin();
    for (int i = 0; i < k; ++i) {
      cout << it->second << ' ';
      ++it;
    }
    cout << '\n';
  } else {
    cout << "NO\n";
  }
}
