#include <bits/stdc++.h>
using namespace std;
int n, x[1111111], s[1111111];
int main() {
  while (~scanf("%d", &n)) {
    for (int i = 1; i <= n; i++) scanf("%d", &x[i]);
    int m, q, p = 0;
    scanf("%d", &m);
    while (m--) {
      scanf("%d", &q);
      x[q] *= -1;
    }
    p = 0;
    for (int i = n; i >= 1; i--) {
      if (x[i] < 0)
        s[++p] = x[i];
      else {
        if (p && x[i] + s[p] == 0)
          p--;
        else
          s[++p] = -x[i], x[i] *= -1;
      }
    }
    if (p)
      printf("NO\n");
    else {
      printf("YES\n");
      for (int i = 1; i <= n; i++) printf("%d%c", x[i], i == n ? '\n' : ' ');
    }
  }
  return 0;
}
