#include <bits/stdc++.h>
using namespace std;
void split(const string &s, vector<string> &tokens, char delimiter) {
  string token;
  istringstream tokenStream(s);
  while (getline(tokenStream, token, delimiter)) tokens.push_back(token);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> lc(n), rc(n), c(n);
  for (register int i = (0); i < (n); i += (1)) cin >> lc[i];
  for (register int i = (0); i < (n); i += (1)) {
    cin >> rc[i];
    c[i] = n - (lc[i] + rc[i]);
  }
  if (lc[0] || rc[n - 1]) {
    cout << "NO";
    return 0;
  }
  bool f = true;
  for (register int i = (0); i < (n); i += (1)) {
    int c1 = 0, c2 = 0;
    for (register int j = (0); j < (n); j += (1)) {
      if (j < i && c[j] > c[i]) c1++;
      if (j > i && c[j] > c[i]) c2++;
    }
    if (c1 != lc[i] || c2 != rc[i]) {
      f = false;
      break;
    }
  }
  if (f) {
    cout << "YES\n";
    for (register int i = (0); i < (n); i += (1)) cout << c[i] << " ";
  } else
    cout << "NO";
  return 0;
}
