#include <bits/stdc++.h>
using namespace std;
const int MAXW = (int)1e6 + 1;
const int INF = (int)1e6 + 1;
bool check(bool ok) {
  if (!ok) cout << "NO", exit(0);
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> l(n);
  for (int& x : l) cin >> x;
  vector<int> r(n);
  for (int& x : r) cin >> x;
  vector<int> a(n);
  for (int i = 0; i < n; i++) a[i] = n - l[i] - r[i];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < i; j++)
      if (a[j] > a[i]) l[i]--;
    check(l[i] == 0);
    for (int j = i + 1; j < n; j++)
      if (a[j] > a[i]) r[i]--;
    check(r[i] == 0);
  }
  cout << "YES" << endl;
  for (int& x : a) cout << x << " ";
  return false;
}
