#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  {
    int n;
    int k;
    cin >> n >> k;
    vector<int> a(n + 1);
    set<int> st;
    unordered_map<int, int> mp;
    for (int i = 1; i <= n; i++) {
      cin >> a[i];
      mp[a[i]] = i;
      st.insert(a[i]);
    }
    if (st.size() < k) {
      cout << "NO"
           << "\n";
    } else {
      cout << "YES\n";
      int cnt = 0;
      for (auto x : mp) {
        cout << x.second << " ";
        cnt++;
        if (cnt == k) break;
      }
    }
  }
  return 0;
}
