#pragma GCC optimize("O3") #ifdef LOCAL #include "algo/debug_ver3.hpp" #else #define debug(...) #define debugArr(...) #endif #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n, k; cin >> n >> k; vector a(n); for (int i = 0; i < n; ++i) { cin >> a[i]; } vector cnt(n + 1); for (int i = 0; i < n; ++i) { ++cnt[a[i]]; } bool ans = cnt[0] >= k; for (int i = 1; i <= n; ++i) { ans |= cnt[0] + cnt[i] >= k; } cout << (ans ? "Yes" : "No") << '\n'; }