#include <bits/stdc++.h>
using namespace std;
bool neg[1000001];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  scanf("%d", &n);
  int x[n];
  for (int i = 0; i < n; i++) scanf("%d", &x[i]);
  scanf("%d", &m);
  for (int i = 0; i < m; i++) {
    int tmp;
    scanf("%d", &tmp);
    neg[--tmp] = 1;
  }
  stack<int> st;
  for (int i = n - 1; i >= 0; i--) {
    if (st.empty() || neg[i] || st.top() != x[i]) {
      st.push(x[i]);
      x[i] = -x[i];
    } else
      st.pop();
  }
  if (!st.empty())
    puts("NO");
  else {
    printf("YES\n");
    for (int i = 0; i < n; i++) printf("%d ", x[i]);
    printf("\n");
  }
}
