#include <bits/stdc++.h>
using namespace std;
int main() {
  int student, team, solo = 0;
  cin >> student >> team;
  int ranks[student];
  bool kembar;
  for (int i = 0; i < student; ++i) {
    cin >> ranks[i];
  }
  for (int i = 0; i < student; ++i) {
    kembar = false;
    for (int j = 0; j < student && j != i; ++j) {
      if (ranks[i] == ranks[j]) {
        kembar = true;
      }
    }
    if (kembar == false) {
      ++solo;
    }
  }
  if (solo >= team) {
    cout << "YES" << endl;
    for (int i = 0; i < student && team > 0; ++i) {
      kembar = false;
      for (int j = 0; j < student && j != i; ++j) {
        if (ranks[i] == ranks[j]) {
          kembar = true;
        }
      }
      if (kembar == false) {
        cout << i + 1 << " ";
        --team;
      }
    }
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
