#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    if (a[i] == 0) a[i] = n;
  }
  multiset<int> b;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    b.insert(x);
  }
  for (int i = 0; i < n; ++i) {
    auto it = b.lower_bound(n - a[i]);
    if (it == b.end()) it = b.begin();
    cout << (*it + a[i]) % n << " ";
    b.erase(it);
  }
  return 0;
}
