#include using namespace std; int main() { int n, m; cin >> n >> m; int a[105]; for (int i = 0; i <= n; i++) { cin >> a[i]; } bool dp[1005]{0}; dp[a[0]] = true; for (int i = 1; i <= n; i++) { bool d[1005]{0}; for (int j = 0; j <= 1000; j++) { d[(j + a[i]) / 2] |= dp[j]; } for (int j = 0; j <= 1000; j++) { dp[j] |= d[j]; } } cout << (dp[m] ? "Yes" : "No") << endl; }