#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  int res[105];
  int number = 0;
  int save[105];
  scanf("%d %d", &n, &k);
  int i, j;
  int a;
  int flag = 0;
  for (i = 1; i <= n; i++) {
    flag = 0;
    scanf("%d", &a);
    for (j = 1; j <= number; j++) {
      if (save[j] == a) {
        flag = 1;
        break;
      }
    }
    if (flag != 1) {
      number++;
      save[number] = a;
      res[number] = i;
    }
  }
  if (number >= k) {
    printf("YES\n");
    for (i = 1; i <= k; i++) {
      printf("%d ", res[i]);
    }
  } else
    printf("NO\n");
  return 0;
}
