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