#include <bits/stdc++.h>
using namespace std;
int n, k, ok, i, cnt, j, nr;
int v[10005], f[10005];
int main() {
  cin >> n >> k;
  for (i = 1; i <= n; i++) {
    cin >> v[i];
    if (f[v[i]] == 0) {
      f[v[i]] = i;
      cnt++;
    }
  }
  if (cnt >= k) {
    cout << "YES\n";
    for (i = 1; i <= 1005; i++) {
      if (f[v[i]] > 0 && nr <= k) {
        cout << f[v[i]] << " ";
        f[v[i]] = 0;
        nr++;
      }
      if (nr == k) break;
    }
  } else
    cout << "NO";
  return 0;
}
