#include <bits/stdc++.h>
namespace rw {
template <class T>
void read(T &x) {
  x = 0;
  int f = 1;
  char c;
  while (!isdigit(c = getchar()))
    if (c == '-') f = -1;
  do {
    x = (x << 3) + (x << 1) + (c ^ 48);
  } while (isdigit(c = getchar()));
  x *= f;
}
template <class T>
inline void write(T x) {
  if (x < 0) putchar('-'), x = -x;
  if (x > 9) write(x / 10);
  putchar(x % 10 ^ 48);
}
}  // namespace rw
using namespace rw;
using namespace std;
const int Maxn = 1e6 + 5;
int a[Maxn];
int main() {
  int n, t, x;
  read(n);
  for (int i = 1; i <= n; ++i) read(a[i]);
  scanf("%d", &t);
  for (int i = 0; i < t; ++i) {
    read(x);
    a[x] *= -1;
  }
  stack<int> s1;
  for (int i = n; i > 0; --i) {
    if (a[i] < 0)
      s1.push(i);
    else if (!s1.empty() && a[i] + a[s1.top()] == 0)
      s1.pop();
    else {
      s1.push(i);
      a[i] *= -1;
    }
  }
  if (!s1.empty())
    puts("NO");
  else {
    puts("YES\n");
    write(a[1]);
    for (int i = 2; i <= n; ++i) putchar(' '), write(a[i]);
    puts("");
  }
  return 0;
}
