#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long l[1001];
  long long r[1001];
  long long f = 0;
  long long ar[1005] = {0};
  for (int i = 0; i < n; ++i) {
    cin >> l[i];
    if (l[i] > i) f = 1;
  }
  for (int i = 0; i < n; ++i) {
    cin >> r[i];
    if (r[i] > n - i - 1) f = 1;
  }
  long long sum = 0;
  long long lim = (n * (n - 1)) / 2;
  for (int i = 0; i < n; ++i) {
    ar[i] = n - (l[i] + r[i]);
    sum += (l[i] + r[i]);
    if (ar[i] <= 0 || sum > lim) {
      f = 1;
      break;
    }
  }
  int lc, rc;
  for (int i = 0; i < n; ++i) {
    lc = rc = 0;
    for (int j = 0; j < i; ++j) {
      if (ar[j] > ar[i]) lc++;
    }
    for (int j = i + 1; j < n; ++j) {
      if (ar[j] > ar[i]) rc++;
    }
    if (lc != l[i] || rc != r[i]) {
      f = 1;
      break;
    }
  }
  if (f == 1) {
    cout << "NO";
  } else {
    cout << "YES\n";
    for (int i = 0; i < n; ++i) {
      cout << ar[i] << " ";
    }
  }
  return 0;
}
