#include <bits/stdc++.h>
using namespace std;
inline void read(int &x) {
  x = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    x = x * 10 + c - '0';
    c = getchar();
  }
  x *= f;
}
inline unsigned int R() {
  static unsigned int seed = 416;
  return seed ^= seed >> 5, seed ^= seed << 17, seed ^= seed >> 13;
}
const int N = 2333;
int n, l[N], r[N], a[N], s[N];
void GG() {
  puts("NO");
  exit(0);
}
int main() {
  read(n);
  for (register int i = 1; i <= n; i++) read(l[i]);
  for (register int i = 1; i <= n; i++) read(r[i]);
  for (register int i = 1; i <= n; i++) a[i] = n - (l[i] + r[i]);
  for (register int i = 1; i <= n; i++) {
    int p = 0;
    for (register int j = 1; j <= i - 1; j++) p += a[j] > a[i];
    if (p != l[i]) GG();
    p = 0;
    for (register int j = i + 1; j <= n; j++) p += a[j] > a[i];
    if (p != r[i]) GG();
  }
  puts("YES");
  for (register int i = 1; i <= n; i++) printf("%d ", a[i]);
  return 0;
}
