#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  map<int, int> mp;
  vector<int> l(n), a(n);
  for (int i = 0; i < n; i++) cin >> l[i];
  vector<int> r(n);
  for (int i = 0; i < n; i++) {
    cin >> r[i];
    a[i] = l[i] + r[i];
    mp[a[i]]++;
  }
  int curr = 1;
  map<int, int> mp2;
  for (auto it = mp.rbegin(); it != mp.rend(); it++) {
    mp2[it->first] = curr++;
  }
  for (int i = 0; i < n; i++) {
    a[i] = mp2[a[i]];
  }
  for (int i = 0; i < n; i++) {
    int cnt1 = 0, cnt2 = 0;
    for (int j = 0; j < n; j++) {
      if (j == i) continue;
      if (a[j] > a[i]) {
        if (j > i)
          cnt2++;
        else
          cnt1++;
      }
    }
    if (cnt1 != l[i] || cnt2 != r[i]) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n";
  for (auto it : a) cout << it << " ";
  cout << endl;
  return 0;
}
