#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:10000000000")
using namespace std;
double f(long long a, long long b, long long c) {
  double res = (double)((b * 1.0 + c * 1.0) / (a * 1.0 + c * 1.0));
  return res;
}
signed main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  multiset<long long> b;
  for (long long i = 0; i < n; i++) cin >> a[i];
  long long vr;
  for (long long i = 0; i < n; i++) {
    cin >> vr;
    b.insert(vr);
  }
  vector<long long> ans(n, 0);
  for (long long i = 0; i < n; i++) {
    long long need = (n - a[i]) % n;
    multiset<long long>::iterator it = b.lower_bound(need);
    if (it == b.end()) {
      it = b.begin();
    }
    long long pol = *it;
    b.erase(it);
    ans[i] = (a[i] + pol) % n;
  }
  for (long long i = 0; i < n; i++) cout << ans[i] << " ";
}
