#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n), v(n);
  vector<int> ans(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (i < a[i]) {
      cout << "NO";
      return 0;
    }
  }
  for (int i = 0; i < n; i++) {
    cin >> v[i];
    if (i > n - v[i]) {
      cout << "NO";
      return 0;
    }
  }
  for (int i = 0; i < n; i++) {
    int sum = v[i] + a[i];
    ans[i] = n - sum;
  }
  for (int i = 0; i < n; i++) {
    int sum1 = 0, sum = 0;
    for (int j = 0; j < i; j++) {
      if (ans[j] > ans[i]) sum1++;
    }
    for (int j = i + 1; j < n; j++) {
      if (ans[j] > ans[i]) sum++;
    }
    if (sum != v[i] || sum1 != a[i]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES\n";
  for (auto i : ans) {
    cout << i << ' ';
  }
}
