#include using namespace std; int main(){ int n; cin>>n; vector v(n); for(int i=0;i>v[i]; } sort(v.begin(),v.end()); if(v.size()%2){ cout<