#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  scanf("%d%d", &n, &x);
  map<int, int> ind;
  set<int> nums;
  for (int i = 0; i < n; i++) {
    scanf("%d", &y);
    nums.insert(y);
    if (!ind[y]) ind[y] = i + 1;
  }
  if (nums.size() < x)
    printf("NO");
  else {
    printf("YES\n");
    map<int, int>::iterator it;
    int cnt = 0;
    for (it = ind.begin(); it != ind.end(); it++) {
      if (it->second == 0)
        printf("1");
      else
        printf("%d", it->second);
      printf(" ");
      cnt++;
      if (cnt >= x) break;
    }
  }
  return 0;
}
