#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]; } sort(c.begin(),c.end()); reverse(c.begin(),c.end()); vector sum(2,0); for(int i=0;i