#include using namespace std; using ll = long long; #define rep(i,n) for (int i=0;i<(int)(n);i++) ll d2(ll x){ double y=x; y=y*y; if(y>=4e18) return 4e18; else return x*x; } int main(){ int n,x,y; cin>>n>>x>>y; vector r(n); sort(r.begin(),r.end()); ll rs=0; rep(i,n){ cin>>r.at(i); rs+=r.at(i)*2; } rs-=r.at(0); ll fxy=ll(x)*x+ll(y)*y; ll rrs=d2(rs); if(rrs