#include <bits/stdc++.h>
using namespace std;
int a[200001];
multiset<int> aset;
multiset<int>::iterator it;
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    aset.clear();
    for (int i = 1; i <= n; i++) {
      int x;
      scanf("%d", &x);
      aset.insert(x);
    }
    for (int i = 1; i <= n; i++) {
      it = aset.lower_bound(n - a[i]);
      if (it == aset.end()) it = aset.begin();
      printf("%d", (a[i] + *it) % n);
      if (i == n)
        printf("\n");
      else
        printf(" ");
      aset.erase(it);
    }
  }
  return 0;
}
