#include #include #include using namespace std; int main() { long N; cin >> N; vector A; for (int i=0; i> A[i]; } long sum; long min_sum=0; for (long i=0; iA[k]) || (A[i]>A[j] && A[j]