#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t = 1;
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  while (t--) {
    long long int i, j, k, m, n, ans = 0;
    cin >> n >> k;
    set<long long int> s;
    map<long long int, long long int> mp;
    for (int i = 0; i < n; i++) {
      cin >> j;
      s.insert(j);
      mp[j] = i;
    }
    if (s.size() < k)
      cout << "NO";
    else {
      long long int c = 0;
      cout << "YES"
           << "\n";
      for (auto u : s) {
        cout << mp[u] + 1 << " ";
        c++;
        if (c == k) break;
      }
    }
  }
  return 0;
}
