#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, k;
  cin >> n >> k;
  int* a = new int[n + 1];
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    m[a[i]] = i + 1;
  }
  if (m.size() < k) {
    cout << "NO\n";
    return 0;
  } else {
    cout << "YES\n";
    int c = 0;
    vector<int> ans;
    for (auto x : m) {
      if (c >= k) {
        break;
      }
      c++;
      ans.push_back(x.second);
    }
    sort(ans.begin(), ans.end());
    for (auto x : ans) {
      cout << x << " ";
    }
  }
}
