#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include using namespace std; using ll = long long; const int INF = 1e9; const ll inf = 1LL<<60; void solve() { ll n, x, y; cin >> n >> x >> y; __int128_t X = x, Y = y; vector r(n); for (int i=0; i> r[i]; if (n == 1) { cout << (X*X + Y*Y == r[0]*r[0] ? "Yes" : "No") << '\n'; } else { __int128_t s = accumulate(r.begin(), r.end(), 0LL)*2LL; s -= *min_element(r.begin(), r.end()); cout << (X*X + Y*Y <= s*s ? "Yes" : "No") << '\n'; } } int main() { ios::sync_with_stdio(false); std::cin.tie(nullptr); // int t; cin >> t; /*while (t--)*/ solve(); }