#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n];
  multiset<int> s;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    s.insert(tmp);
  }
  multiset<int>::iterator it;
  for (int i = 0; i < n; i++) {
    int tmp = arr[i];
    tmp = n - tmp;
    it = s.lower_bound(tmp);
    if (it == s.end()) {
      cout << (*s.begin() + arr[i]) % n << " ";
      s.erase(s.begin());
    } else {
      cout << (*it + arr[i]) % n << " ";
      s.erase(it);
    }
  }
}
