#include <bits/stdc++.h>
using namespace std;
const int mx = 2e5 + 10;
int main() {
  int n, k;
  int a[110];
  int vis[110];
  while (~scanf("%d %d", &n, &k)) {
    int cnt = 0;
    memset(vis, 0, sizeof(vis));
    for (int i = 1; i <= n; i++) {
      scanf("%d", &a[i]);
      if (!vis[a[i]]) {
        cnt++;
        vis[a[i]] = i;
      }
    }
    if (cnt < k)
      printf("NO\n");
    else {
      printf("YES\n");
      for (int i = 1; i <= n; i++) {
        if (vis[a[i]]) {
          printf("%d ", vis[a[i]]);
          vis[a[i]] = 0;
          k--;
        }
        if (k == 0) break;
      }
      printf("\n");
    }
  }
  return 0;
}
