#include <bits/stdc++.h>
using namespace std;
int n, l[1001], r[1001], a[1001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> l[i];
  for (int i = 0; i < n; i++) cin >> r[i];
  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++) {
      l[i] -= (a[j] > a[i]);
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      r[i] -= (a[j] > a[i]);
    }
  }
  for (int i = 0; i < n; i++) {
    if (l[i] != 0 || r[i] != 0) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES\n";
  for (int i = 0; i < n; i++) cout << a[i] << ' ';
  return 0;
}
