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