#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  int l[n + 1], r[n + 1], a[n + 1];
  for (int i = 1; i <= n; i++) cin >> l[i];
  for (int i = 1; i <= n; i++) cin >> r[i];
  for (int i = 1; i <= n; i++) a[i] = n - l[i] - r[i];
  for (int i = 1; i <= n; i++) {
    int lcnt = 0, rcnt = 0;
    for (int j = 1; j < i; j++) {
      if (a[j] > a[i]) lcnt++;
    }
    for (int j = i + 1; j <= n; j++)
      if (a[j] > a[i]) rcnt++;
    if (lcnt != l[i] || rcnt != r[i]) {
      cout << "NO"
           << "\n";
      return 0;
    }
  }
  cout << "YES"
       << "\n";
  for (int i = 1; i <= n; i++) cout << a[i] << " ";
  cout << '\n';
}
