#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, i, t;
  int a[105], b[105];
  cin >> x >> y;
  t = 0;
  memset(b, 0, sizeof(b));
  for (i = 1; i <= x; i++) {
    cin >> a[i];
  }
  for (i = 1; i <= x; i++) {
    if (b[a[i]] == 0) {
      b[a[i]] = 1;
      t++;
    }
  }
  if (t < y) {
    cout << "NO" << endl;
  } else {
    cout << "YES" << endl;
    for (i = 1; i <= x; i++) {
      if (b[a[i]] == 1 && y != 0) {
        b[a[i]] = 0;
        cout << i << ' ';
        y--;
      }
    }
    cout << endl;
  }
  return 0;
}
