#include <bits/stdc++.h>
using namespace std;
int aa[105];
int bb[105];
int main() {
  int n;
  int k;
  cin >> n >> k;
  for (int i = 1; i <= n; i++) {
    int tx;
    cin >> tx;
    aa[tx]++;
    bb[tx] = i;
  }
  int c = 0;
  for (int i = 1; i <= 100; i++) {
    if (aa[i] != 0) c++;
  }
  if (c < k)
    cout << "NO" << endl;
  else {
    int ccc = 0;
    cout << "YES" << endl;
    for (int i = 1; i <= 100; i++) {
      if (ccc == k) break;
      if (aa[i] != 0) {
        cout << bb[i];
        cout << " ";
        ccc++;
      }
    }
  }
  return 0;
}
