#include //#include //using namespace atcoder; using namespace std; using ll = long long; int main(){ int n; cin >> n; vector a(n); for(auto &i:a)cin >> i; sort(a.begin(),a.end()); ll ans = LLONG_MAX; { ll A=0,B=0; for(int i = 0;i