#include using namespace std; int main(void){ int n; cin >> n; vector a; vector c; for(int i=0;i> cc; if(cc == '+' || cc== '-'){ c.push_back(cc); }else{ a.push_back(cc-'0'); } } int m = c.size(); sort(a.begin(),a.end(),greater()); sort(c.begin(),c.end()); long long ma = 0; string s; for(int i=0;ivec; sort(a.begin(),a.end()); s = ""; for(int i=0;i