#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=1e9+7; int main(){ int N; cin>>N; vector c(N); for(int i=0;i>c[i]; } ll ans=-INF; sort(c.begin(),c.end()); for(int t=0;t<2;t++){ vector sum(2,0); for(int i=0;i