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