#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, m, k = 1, co = 0, g = 0;
  cin >> n >> m;
  int a[105], b[105], c[105];
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 0; i < n; i++) {
    if (a[i] > 0) {
      k = a[i];
      b[g++] = i + 1;
      co++;
    }
    for (j = 0; j < n; j++) {
      if (a[j] == k) {
        a[j] = 0;
      }
    }
  }
  if (co >= m) {
    cout << "YES" << endl;
    for (i = 0; i < m; i++) {
      cout << b[i] << " ";
    }
  } else
    cout << "NO" << endl;
}
