#include #include #include using namespace std; typedef long long LL; int main(int argc, char* argv[]) { int N; cin>>N; vector A(N,0); set aSet; LL x; int i; for (i=0;i>x; A[i]=x; aSet.insert(x); } set::iterator sit; LL MinV=1e10; LL Sum=0; for (sit=aSet.begin();sit!=aSet.end();sit++){ LL v=(*sit); Sum=0; for (i=0;iSum){ MinV=Sum; } } cout<