#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  multiset<int> list;
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    list.insert(x);
  }
  for (int i = 0; i < n; ++i) {
    auto current = list.lower_bound(n - v[i]);
    if (current == list.end()) {
      current = list.begin();
    }
    cout << (v[i] + *current) % n << " ";
    list.erase(current);
  }
}
