func_code_string: #include <bits/stdc++.h>   using namespace std;   char a[300099];   char ans[300099];   int c[200000];   int b;   int main() {     while (~scanf( %s , a)) {       memset(c, 0, sizeof(c));       scanf( %d , &b);       int len = strlen(a);       for (int i = 0; i < b; i++) {         int pt;         scanf( %d , &pt);         pt--;         c[pt]++;       }       for (int i = 0; i < len / 2; i++) {         if (i == 0) {           if (c[i] % 2)             ans[i] = a[len - 1 - i], ans[len - 1 - i] = a[i];           else             ans[i] = a[i], ans[len - 1 - i] = a[len - 1 - i];         } else {           c[i] += c[i - 1];           if (c[i] % 2)             ans[i] = a[len - 1 - i], ans[len - 1 - i] = a[i];           else             ans[i] = a[i], ans[len - 1 - i] = a[len - 1 - i];         }       }       if (len % 2) ans[len / 2] = a[len / 2];       ans[len] =   0 ;       printf( %s n , ans);     }     return 0;   }   