#include <bits/stdc++.h>
struct easy {
  int vis;
  int num;
};
int main() {
  int i, n, k, temp, count = 0;
  easy fuck[105];
  scanf("%d%d", &n, &k);
  memset(fuck, 0, sizeof(fuck));
  for (i = 1; i <= n; i++) {
    scanf("%d", &temp);
    fuck[temp].vis = 1;
    fuck[temp].num = i;
  }
  for (i = 1; i <= 100; i++) {
    if (fuck[i].vis == 1) count++;
  }
  if (count < k)
    printf("NO\n");
  else {
    printf("YES\n");
    count = 0;
    for (i = 1; i <= 100; i++) {
      if (fuck[i].vis == 1) {
        count++;
        if (count == k) {
          printf("%d\n", fuck[i].num);
          break;
        } else
          printf("%d ", fuck[i].num);
      }
    }
  }
  return 0;
}
