#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 9;
const long long N = 500500;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> L(n + 1), R(n + 1), x(n + 1);
  bool ok = true;
  for (long long i = 1; i <= n; i++) cin >> L[i];
  for (long long i = 1; i <= n; i++) cin >> R[i];
  for (long long i = 1; i <= n; i++) {
    x[i] = n - L[i] - R[i];
    if (x[i] <= 0 || x[i] > n) {
      ok = false;
    }
  }
  for (long long i = 1; i <= n; i++) {
    long long cnt1 = 0, cnt2 = 0;
    for (long long j = 1; j < i; j++) {
      if (x[j] > x[i]) {
        cnt1++;
      }
    }
    for (long long j = i + 1; j <= n; j++) {
      if (x[j] > x[i]) {
        cnt2++;
      }
    }
    if (!(cnt1 == L[i] && cnt2 == R[i])) {
      ok = false;
    }
  }
  if (!ok) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (long long i = 1; i <= n; i++) cout << x[i] << " ";
  return 0;
}
