#include <bits/stdc++.h>
using namespace std;
int i, j;
int a[1000001], b;
int main() {
  ios_base::sync_with_stdio(false);
  int n, t;
  stack<int> S;
  cin >> n;
  if (n % 2) {
    cout << "NO" << endl;
    return 0;
  }
  for (i = 0; i < n; i++) cin >> a[i];
  cin >> t;
  for (i = 0; i < t; i++) {
    cin >> b;
    a[b - 1] *= -1;
  }
  for (i = n - 1; i >= 0; i--) {
    if (S.empty()) {
      if (a[i] >= 0) a[i] *= -1;
      S.push(a[i]);
    } else if (abs(S.top()) == a[i])
      S.pop();
    else {
      if (a[i] >= 0) a[i] *= -1;
      S.push(a[i]);
    }
  }
  if (!S.empty())
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (i = 0; i < n; i++) cout << a[i] << " ";
  }
  return 0;
}
