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