func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     string str;     cin >> n >> str;     int sum = 0;     bool flag = false;     for (int i = 0; i < n - 1; i++) {       sum += str[i] - 48;       int ts = 0, ti = i + 1;       while (ti < n && ts <= sum) {         if (ts == sum && str[ti] != 48) {           ts = 0;         }         ts += str[ti] - 48;         ti++;       }       if (ti == n && ts == sum) {         flag = true;         break;       }     }     if (flag) {       cout <<  YES ;     } else {       cout <<  NO ;     }   }   