#include <bits/stdc++.h>
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int a[100020];
int allOne(int l, int r) {
if (l < 1) return false;
for (int i = l; i <= r; ++ i) {
if (!a[i]) return false;
}
return true;
}
int main() {
int n = read(), m = read(), k = read();
for (int i = 1; i <= m; ++ i) {
a[i] = 1;
}
for (int i = m+1; i <= 100000; ++ i) {
for (int j = 1; j <= m; ++ j) {
if (allOne(i-j-k, i-j-1)) {
a[i] = 1;
break;
}
}
}
for (int i = 1; i <= n; ++ i) {
int x = read();
if (!a[x]) return puts("No"), 0;
}
puts("Yes");
}