#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int l[n];
  int r[n];
  int a[n];
  int max = 0;
  for (int i = 0; i < n; ++i) {
    cin >> l[i];
  }
  for (int i = 0; i < n; ++i) {
    cin >> r[i];
    if (r[i] + l[i] > max) {
      max = r[i] + l[i];
    }
  }
  if (l[0] > 0 || r[n - 1] > 0) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < n; ++i) {
    a[i] = max - l[i] - r[i] + 1;
  }
  cout << endl;
  for (int i = 0; i < n; ++i) {
    int lt = 0;
    int rt = 0;
    for (int j = i - 1; j >= 0; --j) {
      if (a[j] > a[i]) {
        lt++;
      }
      if (lt > l[i]) {
        cout << "NO";
        return 0;
      }
    }
    if (lt != l[i]) {
      cout << "NO";
      return 0;
    }
    for (int k = i + 1; k < n; ++k) {
      if (a[k] > a[i]) {
        rt++;
      }
      if (rt > r[i]) {
        cout << "NO";
        return 0;
      }
    }
    if (rt != r[i]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES\n";
  for (int i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
  return 0;
}
