#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> v1(n), v2(n);
  bool value = false;
  for (int i = 0; i < n; i++) {
    cin >> v1[i];
    if (v1[i] > i) {
      value = true;
    }
  }
  vector<vector<int>> v(n);
  int k;
  for (int i = 0; i < n; i++) {
    cin >> v2[i];
    if ((v2[i] + v1[i]) < n)
      v[v2[i] + v1[i]].push_back(i);
    else
      value = true;
    if (v2[i] > (n - i - 1)) value = true;
  }
  if (value) {
    cout << "NO";
    return 0;
  }
  vector<int> v3(n);
  int val = 1;
  for (int i = n - 1; i >= 0; i--) {
    for (int k = 0; k < v[i].size(); k++) {
      v3[v[i][k]] = val;
    }
    if (v[i].size()) val++;
  }
  vector<int> dp1(n, 0), dp2(n, 0);
  for (int i = 0; i < n; i++) {
    int count = 0;
    for (int j = 0; j < i; j++) {
      if (v3[j] > v3[i]) count++;
    }
    dp1[i] = count;
    if (dp1[i] != v1[i]) {
      cout << "NO";
      return 0;
    }
  }
  for (int i = 0; i < n; i++) {
    int count = 0;
    for (int j = n - 1; j > i; j--) {
      if (v3[j] > v3[i]) count++;
    }
    dp2[i] = count;
    if (dp2[i] != v2[i]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES"
       << "\n";
  for (int i = 0; i < n; i++) {
    cout << v3[i] << " ";
  }
  return 0;
}
