#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int l[n];
  int r[n];
  for (int i = 0; i < n; i++) cin >> l[i];
  for (int i = 0; i < n; i++) cin >> r[i];
  bool ans = true;
  int a[n];
  for (int i = 0; i < n; i++) {
    a[i] = n - (l[i] + r[i]);
  }
  for (int i = 0; i < n; i++) {
    int cnt = 0;
    int cnt1 = 0;
    for (int j = 0; j < i; j++) {
      if (a[j] > a[i]) cnt++;
    }
    for (int j = i + 1; j < n; j++) {
      if (a[j] > a[i]) cnt1++;
    }
    if (cnt != l[i] || cnt1 != r[i]) ans = false;
  }
  if (ans) {
    cout << "YES" << endl;
    for (int i = 0; i < n; i++) cout << a[i] << " ";
    cout << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
