#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 6;
int arr[N];
bool visited[N];
int sol[N];
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  ;
  int n, k, nSize = 0;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (!visited[arr[i]]) {
      visited[arr[i]] = 1;
      sol[nSize++] = i;
    }
  }
  if (nSize < k)
    cout << "NO\n";
  else {
    cout << "YES\n";
    for (int i = 0; i < k - 1; i++) {
      cout << sol[i] + 1 << " ";
    }
    cout << sol[k - 1] + 1 << "\n";
  }
  return 0;
}
