#include <bits/stdc++.h>
using namespace std;
const int N = 1002;
int n, l[N], r[N], v[N];
int inc[N];
int orr[N], oll[N];
int mark[N];
void NO() {
  cout << "NO";
  exit(0);
}
void solutie(int pune) {
  if (!pune) return;
  vector<int> pozitii;
  for (int i = 1; i <= n; ++i) {
    if (l[i] + r[i] == 0 && !mark[i]) {
      mark[i] = 1;
      v[i] = pune;
      pozitii.push_back(i);
    }
  }
  for (auto i : pozitii) {
    for (int j = 1; j <= n; ++j)
      if (!mark[j]) {
        if (i < j)
          --r[j];
        else if (i > j)
          --l[j];
      }
  }
  solutie(pune - 1);
}
int main() {
  cin >> n;
  int m = n;
  for (int i = 1; i <= n; ++i) {
    cin >> l[i];
    oll[i] = l[i];
  }
  for (int i = 1; i <= n; ++i) cin >> r[i], orr[i] = r[i];
  solutie(n);
  for (int i = 1; i <= n; ++i) {
    int st = 0, dr = 0;
    if (!v[i]) NO();
    for (int j = 1; j <= n; ++j) {
      if (i < j && v[j] > v[i]) ++st;
      if (i > j && v[j] > v[i]) ++dr;
    }
    if (dr != oll[i] or st != orr[i]) NO();
  }
  cout << "YES\n";
  for (int i = 1; i <= n; ++i) cout << v[i] << ' ';
  cout << endl;
}
