#include <bits/stdc++.h>
using namespace std;
int n;
int l[1024];
int r[1024];
int used[1024];
void make(int i) {
  for (int j = i + 1; j <= n; j++) l[j]--;
  for (int j = i - 1; j >= 1; j--) r[j]--;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> l[i];
  for (int i = 1; i <= n; i++) cin >> r[i];
  int curr = n;
  for (int i = 1; i <= n; i++) {
    vector<int> v;
    for (int i = 1; i <= n; i++)
      if (l[i] == 0 && r[i] == 0 && !used[i]) {
        used[i] = curr;
        v.push_back(i);
      }
    for (int i : v) make(i);
    curr--;
  }
  for (int i = 1; i <= n; i++)
    if (!used[i]) {
      cout << "NO" << '\n';
      return 0;
    }
  cout << "YES" << '\n';
  for (int i = 1; i <= n; i++) cout << used[i] << " ";
  cout << '\n';
}
