#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &ele : a) cin >> ele;
  multiset<int> b;
  for (int(_i) = 0; (_i) < n; ++(_i)) {
    int tmp;
    cin >> tmp;
    b.insert(tmp);
  }
  for (int(_i) = 0; (_i) < n; ++(_i)) {
    auto it = b.lower_bound(n - a[_i]);
    if (it == b.end()) it = b.begin();
    cout << (a[_i] + *it) % n << " ";
    b.erase(it);
  }
  cout << endl;
  return 0;
}
