#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, k;
  cin >> n >> k;
  map<int, int> items;
  for (int i = 0; i < n; i++) {
    int item;
    cin >> item;
    items[item] = i + 1;
  }
  if (items.size() < k) {
    cout << "NO" << endl;
  } else {
    int cnt = 0;
    cout << "YES" << endl;
    for (auto t : items) {
      cout << t.second << " ";
      cnt++;
      if (cnt == k) {
        break;
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cout.setf(ios::fixed);
  cout.precision(10);
  cout.tie(nullptr);
  cin.tie(nullptr);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
