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