#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; bool flag; for (long i=0; iA[k]) || (!flag && A[j]