#include <bits/stdc++.h>
using namespace std;
int cnt[200005], a[200005];
set<int> isi;
vector<int> ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, b;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    cin >> b;
    isi.insert(b);
    cnt[b]++;
  }
  for (int i = 1; i <= n; i++) {
    int opt = (n - a[i]) % n;
    auto it = isi.lower_bound(opt);
    if (it == isi.end()) {
      it = isi.begin();
    }
    ans.push_back((a[i] + *it) % n);
    cnt[*it]--;
    if (cnt[*it] == 0) isi.erase(*it);
  }
  for (int i = 0; i < n; i++) {
    if (i < n - 1)
      cout << ans[i] << " ";
    else
      cout << ans[i] << endl;
  }
  return 0;
}
