#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<pair<int, int>> seat(n);
  for (auto& p : seat) cin >> p.first;
  for (auto& p : seat) cin >> p.second;
  vector<int> c(n);
  for (int i = 0; i < n; i++) c[i] = n - seat[i].first - seat[i].second;
  for (int i = 0; i < n; i++) {
    for (int j = i - 1; j >= 0; j--) seat[i].first -= c[i] < c[j];
    for (int j = i + 1; j < n; j++) seat[i].second -= c[i] < c[j];
  }
  bool error = false;
  for (int i = 0; i < n; i++)
    error = seat[i].first != 0 || seat[i].second != 0 ? true : error;
  cout << (error ? "NO" : "YES") << endl;
  if (!error)
    for (auto a : c) cout << a << " ";
  return 0;
}
