#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int l[n], r[n], a[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++) {
    a[i] = n - l[i] - r[i];
  }
  int flag = 1;
  for (int i = 0; i < n; i++) {
    int counter = 0;
    for (int j = i + 1; j < n; j++) {
      if (a[j] > a[i]) {
        counter++;
      }
    }
    if (counter != r[i]) {
      flag = 0;
    }
    counter = 0;
    for (int j = i - 1; j >= 0; j--) {
      if (a[j] > a[i]) {
        counter++;
      }
    }
    if (counter != l[i]) {
      flag = 0;
    }
    if (flag == 0) {
      break;
    }
  }
  if (flag) {
    cout << "YES" << endl;
    for (int i = 0; i < n; i++) {
      cout << a[i] << " ";
    }
  } else {
    cout << "NO" << endl;
  }
}
