#include <bits/stdc++.h>
using namespace std;
const int N = 1000005;
int n, m;
int a[N], vis[N];
int st[N], top;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  scanf("%d", &m);
  for (int i = 1; i <= m; i++) {
    int t;
    scanf("%d", &t);
    vis[t] = 1;
  }
  for (int i = n; i >= 1; i--) {
    if (!top)
      st[++top] = i;
    else {
      if (a[st[top]] == a[i]) {
        if (vis[st[top]] && !vis[i])
          top--;
        else if (!vis[st[top]] && !vis[i]) {
          vis[st[top]] = 1;
          top--;
        } else
          st[++top] = i;
      } else
        st[++top] = i;
    }
  }
  if (!top) {
    printf("YES\n");
    for (int i = 1; i <= n; i++) {
      if (vis[i])
        printf("-%d ", a[i]);
      else
        printf("%d ", a[i]);
    }
  } else
    printf("NO\n");
  return 0;
}
