#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  vector<long long> l(2000), r(2000);
  vector<long long> b(2000);
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> l[i];
  }
  for (long long i = 0; i < n; i++) {
    cin >> r[i];
  }
  for (long long i = 0; i < n; i++) {
    b[i] = n - (l[i] + r[i]);
  }
  for (long long i = 0; i < n; i++) {
    long long kl = 0;
    long long kr = 0;
    for (long long j = i - 1; j >= 0; j--) {
      if (b[j] > b[i]) kl++;
    }
    for (long long j = i + 1; j < n; j++) {
      if (b[j] > b[i]) kr++;
    }
    if (kl != l[i] || kr != r[i]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES" << '\n';
  for (long long i = 0; i < n; i++) {
    cout << b[i] << " ";
  }
  return 0;
}
