#include <bits/stdc++.h>
int main() {
  int poi[102], nagato[102], n, k, i, j, mutsu;
  scanf("%d %d", &n, &k);
  int flag, counter = 0;
  for (i = 0; i < n; i++) {
    flag = 0;
    scanf("%d", &poi[i]);
    for (j = 0; j < i; j++) {
      if (poi[j] == poi[i]) {
        flag = 1;
        break;
      } else
        flag = 0;
    }
    if (flag == 0) {
      nagato[counter++] = i + 1;
    }
    if (counter >= k) break;
  }
  if (counter >= k) {
    printf("YES\n");
    for (i = 0; i < counter - 1; i++) {
      printf("%d ", nagato[i]);
    }
    printf("%d\n", nagato[counter - 1]);
  } else
    printf("NO\n");
}
