func_code_string: #include <bits/stdc++.h>   using namespace std;   long long oll = 0;   bool comp(const pair<int, int> &a, const pair<int, int> &b) {     return a.second < b.second;   }   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     int n;     cin >> n;     vector<long long> first, second;     long long fr = 0, sc = 0;     int lst = -1;     for (long long i = 0; i < n; i++) {       int temp;       cin >> temp;       if (temp > 0) {         if (i == n - 1) {           lst = 1;         }         first.push_back(temp);         fr += temp;       } else {         if (i == n - 1) {           lst = 2;         }         temp *= -1;         second.push_back(temp);         sc += (temp);       }     }     if (fr > sc) {       cout <<  first             <<   n ;     } else if (fr < sc) {       cout <<  second             <<   n ;     } else {       int win = -1;       for (long long i = 0; i < min(first.size(), second.size()); i++) {         if (first[i] > second[i]) {           win = 1;           break;         } else if (first[i] < second[i]) {           win = 2;           break;         }       }       if (win == 1) {         cout <<  first               <<   n ;       } else if (win == 2) {         cout <<  second               <<   n ;       } else {         if (lst == 1) {           cout <<  first                 <<   n ;         } else {           cout <<  second                 <<   n ;         }       }     }     return 0;   }   