func_code_string: #include <bits/stdc++.h>   int n, i, x, p[1 << 20], q[1 << 20], t[1 << 20], k;   int main() {     scanf( %d , &n);     for (i = 0; i < n && 1 == scanf( %d , &p[i]); ++i)       ;     for (scanf( %d , &i); i-- > 0 && 1 == scanf( %d , &x); q[x - 1] = 1)       ;     for (i = n; i-- > 0;)       if (q[i] || !k || p[i] != t[k - 1])         t[k++] = p[i], p[i] *= -1;       else         --k;     if (k)       puts( NO );     else {       puts( YES );       for (i = 0; i < n; ++i) printf( %d  , p[i]);       puts(  );     }   }   