#include <bits/stdc++.h>
using namespace std;
stack<int> s;
int a[(int)(1e+6) * 5];
bool b[(int)(1e+6) * 5];
int main() {
  ios_base::sync_with_stdio(0);
  int n, i, t, x;
  cin >> n;
  for (i = 1; i <= n; i++) cin >> a[i];
  cin >> t;
  while (t > 0) cin >> x, b[x] = 1, t--;
  for (i = n; i > 0; i--) {
    x = -1;
    if (!s.empty()) x = s.top();
    if (x != -1 && !b[i] && a[i] == a[x])
      a[x] *= -1, s.pop();
    else
      s.push(i);
  }
  if (!s.empty()) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  for (i = 1; i <= n; i++) cout << a[i] << ' ';
  return 0;
}
