func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[105], b[105];   int main() {     int n, i, j, k, x, y;     while (~scanf( %d , &n)) {       for (i = 1; i <= n; i++) {         scanf( %d , &a[i]);       }       scanf( %d%d , &x, &y);       for (i = 1, j = 0; i <= n; i++) {         int count1 = 0, count2 = 0;         for (k = 1; k <= n; k++) {           if (k >= i)             count1 += a[k];           else             count2 += a[k];         }         if ((count1 >= x && count1 <= y) && (count2 >= x && count2 <= y)) {           b[j++] = i;           break;         }       }       if (j == 0) {         printf( 0 n );         continue;       }       printf( %d n , b[0]);     }     return 0;   }   