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