#include <bits/stdc++.h>
using namespace std;
int ar[1005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < 1005; i++) {
    ar[i] = n;
  }
  int l[n], r[n];
  for (int i = 0; i < n; i++) {
    cin >> l[i];
    ar[i] -= l[i];
  }
  for (int i = 0; i < n; i++) {
    cin >> r[i];
    ar[i] -= r[i];
  }
  for (int i = 0; i < n; i++) {
    int cur = r[i], cnt = 0;
    for (int j = i + 1; j < n; j++) {
      if (ar[j] > ar[i]) {
        cnt++;
      }
    }
    if (cnt != cur) {
      cout << "NO" << endl;
      return 0;
    }
  }
  for (int i = n - 1; i >= 0; i--) {
    int cur = l[i], cnt = 0;
    for (int j = i - 1; j >= 0; j--) {
      if (ar[j] > ar[i]) {
        cnt++;
      }
    }
    if (cnt != cur) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  for (int i = 0; i < n; i++) {
    cout << ar[i] << " ";
  }
  return 0;
}
