func_code_string: #include <bits/stdc++.h>   using namespace std;   void Fast_Read_Out() {     ios_base::sync_with_stdio(0);     cin.tie(), cout.tie();   }   void Random() {     unsigned int seed;     asm( rdtsc  :  =A (seed));     srand(seed);   }   unsigned int Time() {     unsigned int time = clock() / 1000.00;     return time;   }   const int inf = int(1e9) + 123;   int n, sum;   string s;   int main() {     Random();     Fast_Read_Out();     cin >> n;     cin >> s;     for (int i = 0; i < n; i++) sum += s[i] -  0 ;     for (int i = 0; i <= n * 9; i++) {       int cur = 0, cnt = 0, ok = 0, sum1 = 0;       for (int j = 0; j < n; j++) {         if (cur < i) cur += s[j] -  0 ;         if (cur == i) sum1 += cur, cur = 0, cnt++;         if (cur > i) {           ok = 1;           break;         }       }       if (cnt < 2) continue;       if (ok == 1) continue;       if (sum == sum1) cout <<  YES  << endl, exit(0);     }     cout <<  NO  << endl;   }   