#include <bits/stdc++.h>
using namespace std;
const int M = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<long long> 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];
  }
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      if (A[j] > A[i]) {
        R[i]--;
      }
    }
    for (int j = 0; j < i; ++j) {
      if (A[j] > A[i]) {
        L[i]--;
      }
    }
  }
  for (int i = 0; i < n; ++i) {
    if (L[i] || R[i]) {
      cout << "NO"
           << "\n";
      return 0;
    }
  }
  cout << "YES"
       << "\n";
  for (int i : A) {
    cout << i << " ";
  }
  cout << "\n";
  return 0;
}
