#include <bits/stdc++.h>
using namespace std;
const double PI = 2 * acos(0.0);
template <class T>
void show(T a) {
  for (auto x : a) cout << x << " ";
  cout << endl;
}
const string DIGITS = "0123456789";
const string ALPH = "abcdefghijklmnopqrstuvwxyz";
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<int> lf(n), rf(n);
  for (int i = 0; i < int(n); ++i) cin >> lf[i];
  for (int i = 0; i < int(n); ++i) cin >> rf[i];
  vector<int> ans(n);
  for (int i = 0; i < int(n); ++i) ans[i] = n - lf[i] - rf[i];
  for (int i = 0; i < int(n); ++i) {
    int cl = 0, cr = 0;
    for (int j = 0; j < i; ++j)
      if (ans[j] > ans[i]) ++cl;
    for (int j = i + 1; j < n; ++j)
      if (ans[j] > ans[i]) ++cr;
    if (cl != lf[i] || cr != rf[i]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES" << endl;
  for (int i = 0; i < int(n); ++i) cout << ans[i] << " ";
}
