func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int i, save, left, right;     string A;     while (cin >> A) {       left = 0;       right = 0;       for (i = 0; i < A.size(); i++) {         if (A[i] ==  ^ ) {           save = i;         }       }       i = save;       i--;       while (i != -1) {         if (A[i] >=  0  && A[i] <=  9 ) left += (A[i] -  0 ) * (save - i);         i--;       }       int i = save;       i++;       while (i != A.size()) {         if (A[i] >=  0  && A[i] <=  9 ) right += (A[i] -  0 ) * (i - save);         i++;       }       if (left > right)         cout <<  left  << endl;       else if (right > left)         cout <<  right  << endl;       else         cout <<  balance  << endl;     }   }   