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