#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e3 + 100;
int arr[maxn];
int b[maxn];
int ans[maxn];
int cnt[maxn];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> arr[i];
  for (int i = 0; i < n; ++i) cin >> b[i];
  bool flag = true;
  for (int i = 0; i < n; ++i) {
    ans[i] = n - arr[i] - b[i];
  }
  int tot = 0;
  for (int i = 0; i < n; ++i) {
    int temp = 0;
    for (int j = 0; j < tot; ++j) {
      if (cnt[j] > ans[i]) ++temp;
    }
    if (temp != arr[i]) flag = false;
    cnt[tot++] = ans[i];
  }
  tot = 0;
  for (int i = n - 1; i >= 0; --i) {
    int temp = 0;
    for (int j = 0; j < tot; ++j) {
      if (cnt[j] > ans[i]) ++temp;
    }
    if (temp != b[i]) flag = false;
    cnt[tot++] = ans[i];
  }
  if (flag) {
    cout << "YES" << endl;
    for (int i = 0; i < n; ++i) cout << ans[i] << " ";
    cout << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
