#include using namespace std; using ll = long long; using ld = long double; using Pair = pair; using Tuple = tuple; using VI1 = vector; using VI2 = vector; using VL1 = vector; using VL2 = vector; using VD1 = vector; using VD2 = vector; using VB1 = vector; using VB2 = vector; using VP1 = vector; using VP2 = vector; using VT1 = vector; using VT2 = vector; using Queue = queue; using DQ = deque; using PQ = priority_queue, greater>; using Table = VI2; using Graph = VI2; template bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } auto solve() { int N, M, L; cin >> N >> M >> L; VI1 A(N); for (auto &Ai : A) cin >> Ai; auto K = max({M, L, *max_element(A.begin(), A.end())}); Table dp(N + 1, VI1(K + 1, 0)); dp[0][L] = 1; for (int i = 0; i < N; ++i) { auto Ai = A.at(i); for (int j = 0; j <= K; ++j) { chmax(dp[i + 1][j], dp[i][j]); auto k = (Ai + j) / 2; chmax(dp[i + 1][k], dp[i][j]); } } return (dp[N][M] == 1); } void outputYesNo(bool yes, const string &Yes = "Yes", const string &No = "No") { if (yes) cout << Yes << '\n'; else cout << No << '\n'; } int main() { std::ios::sync_with_stdio(false); std::cin.tie(nullptr); auto result = solve(); outputYesNo(result); }