#include <bits/stdc++.h>
using namespace std;
int a[1000006];
stack<int> s;
int main() {
  int n, t;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  cin >> t;
  for (int i = 1; i <= t; i++) {
    int x;
    scanf("%d", &x);
    a[x] *= -1;
  }
  for (int i = n; i >= 1; i--) {
    if (a[i] < 0)
      s.push(a[i]);
    else {
      if (s.size() && s.top() + a[i] == 0)
        s.pop();
      else
        s.push(-a[i]), a[i] *= -1;
    }
  }
  if (s.size() == 0) {
    cout << "YES" << endl;
    for (int i = 1; i <= n; i++) {
      printf("%d ", a[i]);
    }
    cout << endl;
    return 0;
  }
  cout << "NO" << endl;
}
