#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[1000005];
int b;
int s[1000005];
int top;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  scanf("%d", &m);
  for (int j = 1; j <= m; j++) {
    scanf("%d", &b);
    a[b] *= -1;
  }
  for (int i = n; i >= 1; i--) {
    if (a[i] < 0) {
      s[++top] = a[i];
    } else {
      if (top && a[i] + s[top] == 0) {
        top--;
      } else {
        a[i] *= -1;
        s[++top] = a[i];
      }
    }
  }
  if (top) {
    cout << "NO";
    return 0;
  } else {
    cout << "YES" << endl;
    for (int i = 1; i <= n; i++) cout << a[i] << " ";
  }
  return 0;
}
