#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int INF = 1e9 + 10;
const int N = 1e2 + 5;
int mark[N];
int ans;
int main() {
  int n, k;
  cin >> n >> k;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    mark[x] = i + 1;
  }
  for (int i = 0; i < N; i++) {
    if (mark[i] != 0) ans++;
  }
  if (ans >= k) {
    cout << "YES" << '\n';
    int cnt = 0;
    for (int i = 0; i < N; i++) {
      if (cnt < k and mark[i] != 0) {
        cout << mark[i] << ' ';
        cnt++;
      }
    }
  } else
    cout << "NO";
}
