#include <bits/stdc++.h>
using namespace std;
template <typename T, typename TT>
ostream &operator<<(ostream &s, pair<T, TT> t) {
  return s << "(" << t.first << "," << t.second << ")";
}
template <typename T>
ostream &operator<<(ostream &s, vector<T> t) {
  s << "{";
  for (int i = 0; i < t.size(); i++)
    s << t[i] << (i == t.size() - 1 ? "" : ",");
  return s << "}" << endl;
}
void zle() {
  puts("NO");
  exit(0);
}
int v[1000002];
int ne[10000002];
int pre[1000002];
int mn[1000002];
bool doned[1000002];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  scanf("%d", &(n));
  ;
  for (int i = 0; i < n; i++) scanf("%d", &(v[i + 1]));
  ;
  int t;
  scanf("%d", &(t));
  ;
  for (int i = 0; i < t; i++) {
    int x;
    scanf("%d", &(x));
    ;
    mn[x] = 1;
  }
  for (int i = 1; i <= n; i++) {
    pre[i] = i - 1;
    ne[i] = i + 1;
  }
  int red = 0;
  vector<int> r;
  for (int i = 1; i <= n; i++) {
    if (mn[i] == 1) {
      while (1) {
        if (pre[i] == 0) zle();
        if (v[pre[i]] == v[i]) {
          doned[pre[i]] = doned[i] = 1;
          red++;
          ne[pre[pre[i]]] = ne[i];
          pre[ne[i]] = pre[pre[i]];
          break;
        }
        if (r.size() == 0) zle();
        int f = r.back();
        r.pop_back();
        if (pre[f] == 0 || doned[f] || doned[pre[f]] || v[f] != v[pre[f]])
          continue;
        doned[pre[f]] = doned[f] = 1;
        red++;
        mn[f] = 1;
        ne[pre[pre[f]]] = ne[f];
        pre[ne[f]] = pre[pre[f]];
        f = ne[f];
        r.push_back(f);
      }
    } else {
      if (v[pre[i]] == v[i]) {
        r.push_back(i);
      }
    }
  }
  while (r.size()) {
    int f = r.back();
    r.pop_back();
    if (pre[f] == 0 || doned[f] || doned[pre[f]] || v[f] != v[pre[f]]) continue;
    doned[pre[f]] = doned[f] = 1;
    red++;
    mn[f] = 1;
    ne[pre[pre[f]]] = ne[f];
    pre[ne[f]] = pre[pre[f]];
    f = ne[f];
    r.push_back(f);
  }
  if (red * 2 != n) zle();
  puts("YES");
  for (int i = 1; i <= n; i++) {
    printf("%d ", mn[i] ? -v[i] : v[i]);
  }
  return 0;
}
