#include <bits/stdc++.h>
using namespace std;
int num[105];
int main() {
  int a, n;
  int k, m;
  bool visted[105];
  while (scanf("%d %d", &n, &k) != EOF) {
    memset(visted, 0, sizeof(visted));
    memset(num, 0, sizeof(num));
    m = 0;
    for (a = 0; a < n; a++) {
      scanf("%d", &num[a]);
      if (!visted[num[a]]) {
        m++;
        visted[num[a]] = true;
      }
    }
    if (m >= k) {
      printf("YES\n");
      for (a = 0; a < n && k; a++) {
        if (visted[num[a]]) {
          k--;
          printf("%d ", a + 1);
          visted[num[a]] = false;
        }
      }
      printf("\n");
    } else {
      printf("NO\n");
    }
  }
  return 0;
}
