#include <bits/stdc++.h>
const long long MOD = 1000000007;
const double ZER = 1e-9;
const double PI = acos(-1);
using namespace std;
bool calc(vector<int> &res, vector<pair<int, int> > &org) {
  vector<pair<int, int> > v(res.size());
  for (int i = 0; i < res.size(); ++i) {
    int right = 0, left = 0;
    for (int j = i + 1; j < res.size(); ++j)
      if (res[j] > res[i]) ++right;
    for (int j = 0; j < i; ++j)
      if (res[j] > res[i]) ++left;
    v[i] = {left, right};
  }
  return v == org;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<pair<int, int> > v(n);
  for (int i = 0; i < n; ++i) cin >> v[i].first;
  for (int i = 0; i < n; ++i) cin >> v[i].second;
  vector<int> res(n);
  for (int i = 0; i < n; ++i) {
    int diff = v[i].first + v[i].second;
    res[i] = n - diff;
    if (res[i] <= 0) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (calc(res, v)) {
    cout << "YES" << endl;
    for (int i = 0; i < res.size(); ++i) cout << res[i] << " ";
    cout << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
