#include<iostream>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
int n, k, x;
cin >> n >> k >> x;
int kol = 0;
int y = 0;
for (int i = 0; i < n; ++i)
{
int h;
cin >> h;
if (h > k)
{
++y;
}
}
if (x - y < -1)
{
cout << "NO\n";
}
else
{
cout << "YES\n";
}
return 0;
}