#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  vector<long long> l(n + 5), r(n + 5);
  for (long long i = 1; i < n + 1; ++i) cin >> l[i];
  for (long long i = 1; i < n + 1; ++i) cin >> r[i];
  vector<pair<long long, long long> > v;
  for (long long i = 1; i < n + 1; ++i) v.push_back({l[i] + r[i], i});
  sort(v.begin(), v.end());
  long long x = n, ans[n + 5];
  for (long long i = 0; i < (long long)v.size(); ++i) {
    ans[v[i].second] = x;
    while (i + 1 < (long long)v.size() && v[i].first == v[i + 1].first) {
      ++i;
      ans[v[i].second] = x;
    }
    x--;
  }
  for (long long i = 1; i < n + 1; ++i) {
    long long c1 = 0;
    for (long long j = 1; j < i; ++j)
      if (ans[i] < ans[j]) ++c1;
    long long c2 = 0;
    for (long long j = i + 1; j < n + 1; ++j)
      if (ans[j] > ans[i]) ++c2;
    if (c1 == l[i] && c2 == r[i]) continue;
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (long long i = 1; i < n + 1; ++i) cout << ans[i] << " ";
  return 0;
}
