#include <bits/stdc++.h>
using namespace std;
int num[105];
int main() {
  memset(num, 0, sizeof(num));
  int n, m;
  cin >> n >> m;
  int ans[m];
  int to = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (num[a] == 0) {
      num[a]++;
      ans[to] = i + 1;
      to++;
    }
    if (to == m) break;
  }
  if (to < m) {
    cout << "NO";
  } else {
    cout << "YES\n";
    for (int i = 0; i < m; i++) {
      cout << ans[i] << " ";
    }
  }
}
