#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, i, j, d, lc, rc, f = 1, v;
  vector<long long int> a, b, c;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> v;
    a.push_back(v);
  }
  for (i = 0; i < n; i++) {
    cin >> v;
    b.push_back(v);
    d = n - (a[i] + b[i]);
    c.push_back(d);
  }
  for (i = 0; i < n; i++) {
    lc = rc = 0;
    for (j = i + 1; j < n; j++) {
      if (c[j] > c[i]) rc++;
    }
    if (rc != b[i]) {
      f = 0;
      break;
    }
    for (j = 0; j < i; j++) {
      if (c[j] > c[i]) lc++;
    }
    if (lc != a[i]) {
      f = 0;
      break;
    }
  }
  if (f == 1) {
    cout << "YES\n";
    for (i = 0; i < n; i++) cout << c[i] << " ";
  } else {
    cout << "NO\n";
  }
  return 0;
}
