#include <bits/stdc++.h>
using namespace std;
int n, k, v[105], frec[105];
vector<int> ans;
int main() {
  cin >> n >> k;
  for (int i = 1; i <= n; i++) cin >> v[i];
  for (int i = 1; i <= n; i++)
    if (!frec[v[i]]) {
      frec[v[i]] = 1;
      ans.push_back(i);
      if (ans.size() == k) break;
    }
  if (ans.size() == k) {
    cout << "YES" << '\n';
    for (int i = 0; i < ans.size(); i++) cout << ans[i] << ' ';
    cout << '\n';
  } else
    cout << "NO" << '\n';
  return 0;
}
