#include <bits/stdc++.h>
using namespace std;
int n;
int l[1001], r[1001], ss[1001];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> l[i];
  for (int i = 0; i < n; i++) cin >> r[i];
  for (int i = 0; i < n; i++) {
    ss[i] = n - l[i] - r[i];
    if (ss[i] < 1) {
      cout << "NO\n";
      exit(0);
    }
  }
  for (int i = 0; i < n; i++) {
    int a = 0, b = 0;
    for (int j = 0; j < i; j++) a += ss[j] > ss[i];
    for (int j = i + 1; j < n; j++) b += (ss[j] > ss[i]);
    if (a != l[i] || b != r[i]) {
      cout << "NO\n";
      exit(0);
    }
  }
  cout << "YES\n";
  for (int i = 0; i < n; i++) cout << ss[i] << " ";
}
