#include using namespace std; using ll = long long; using P = pair; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector, greater #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a> n >> x >> y; ll d = x*x+y*y, tot = 0; if(n==1){ ll a; cin >> a; if(a*a==d) cout << "Yes\n"; else cout << "No\n"; return 0; } rep(i,n){ ll a; cin >> a; tot += a*2; if(tot*tot>=d){ cout << "Yes\n"; return 0; } } cout << "No\n"; return 0; }