#include #include using namespace std; using ll = int; #define rep(i,n) for(ll i=0;i; using vvll = vector; using vvvll = vector; using vvvvll = vector; using vb = vector; using vvb = vector; using vvvb = vector; using vvvvb = vector; bool DEB = 0; int main() { ll N; cin>>N; vll C(N); rep(i,N)cin>>C[i]; ll an=-1e18; ll res=0,fes; sort(all(C)); rep(t,2){ res=0,fes=0; rep(i,N){ if(i%2==0)res+=C[i]; else fes+=C[i]; } an=max(an,abs(res)-abs(fes)); reverse(all(C)); } cout<