#include <bits/stdc++.h>
using namespace std;
const int N = 1000010;
int p[N], stk[N];
int n, t, x, ed;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", &p[i]);
  scanf("%d", &t);
  for (int i = 0; i < t; ++i) {
    scanf("%d", &x);
    p[x] *= -1;
  }
  ed = -1;
  for (int i = n; i > 0; --i) {
    if (ed >= 0 && p[i] > 0 && p[i] == abs(p[stk[ed]])) {
      p[stk[ed]] = -abs(p[stk[ed]]);
      --ed;
    } else
      stk[++ed] = i;
  }
  if (ed >= 0)
    printf("NO\n");
  else {
    printf("YES\n");
    for (int i = 1; i < n; ++i) printf("%d ", p[i]);
    printf("%d\n", p[n]);
  }
  return 0;
}
