#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  pair<int, int> team[k];
  int teamCount = 0;
  int i = 0;
  while (n--) {
    i++;
    int x;
    cin >> x;
    if (teamCount == k) continue;
    bool fresh = true;
    for (int i = 0; i < teamCount; i++)
      if (team[i].first == x) {
        fresh = false;
        break;
      }
    if (fresh) {
      team[teamCount] = {x, i};
      teamCount++;
    }
  }
  if (teamCount == k) {
    cout << "YES" << endl;
    for (auto p : team) cout << p.second << " ";
  } else
    cout << "NO";
}
