#include using namespace std; #include using namespace atcoder; using ll = long long; #define rep(i, n) for (ll i = 0; i < ll(n); i++) int main(){ int n,m,l; cin >> n >> m >> l; vector a(n); rep(i,n) cin >> a[i]; set seen; bool ok = false; auto dfs = [&](auto &dfs,int v,int col) -> void { if(seen.count(col)) return; seen.insert(col); if(col == m) ok = true; for(int i = v+1;i < n;i++){ dfs(dfs,i,(a[i]+col)/2); } }; dfs(dfs,0,l); if(ok) cout << "Yes" << endl; else cout << "No" << endl; }