#include <bits/stdc++.h>
using namespace std;
inline int read() {
  register int x = 0;
  register bool f = 0;
  register char ch = getchar();
  while (!isdigit(ch)) {
    f ^= !(ch ^ '-');
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = (x + (x << 2) << 1) + (ch ^ '0');
    ch = getchar();
  }
  return f ? -x : x;
}
inline void print(int x) {
  register int sc[30] = {0}, tot = 0;
  do {
    sc[++tot] = x % 10;
    x /= 10;
  } while (x);
  while (tot) putchar('0' + sc[tot--]);
}
int n, k, a[110], tot, rub[110], vis[110], cnt;
int main() {
  n = read();
  k = read();
  for (register int i = 1; i <= n; i++) {
    a[i] = read();
    if (!rub[a[i]]) {
      tot++;
      rub[a[i]] = 1;
    }
  }
  if (tot < k) {
    puts("NO");
    return 0;
  }
  puts("YES");
  for (register int i = 1; i <= n; i++)
    if (rub[a[i]] && !vis[a[i]]) {
      printf("%d ", i);
      vis[a[i]] = 1;
      cnt++;
      if (cnt == k) break;
    }
  puts("");
  return 0;
}
