#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, aux;
  cin >> N;
  int v[N];
  multiset<int> s;
  for (int i = 0; (i) < int(N); (i)++) {
    cin >> v[i];
  }
  for (int i = 0; (i) < int(N); (i)++) {
    cin >> aux;
    s.insert(aux);
  }
  for (int i = 0; (i) < int(N); (i)++) {
    aux = N - v[i];
    auto itL = s.lower_bound(aux);
    if (itL == s.end()) {
      cout << (v[i] + (*(s.begin()))) % N << " \n"[i == N - 1];
      s.erase(s.begin());
    } else {
      cout << (v[i] + (*itL)) % N << " \n"[i == N - 1];
      s.erase(s.find(*itL));
    }
  }
  return 0;
}
