#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, data, req;
  cin >> n;
  vector<int> arr(n);
  vector<int> brr(n);
  map<int, int> mp;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    cin >> data;
    mp[data] += 1;
  }
  for (int i = 0; i < n; i++) {
    data = arr[i];
    req = n - arr[i];
    auto itr = mp.upper_bound(req - 1);
    if (itr == mp.end()) itr = mp.begin();
    brr[i] = (*itr).first;
    mp[(*itr).first] -= 1;
    if (mp[brr[i]] == 0) mp.erase(itr);
  }
  for (int i = 0; i < n; i++) cout << (arr[i] + brr[i]) % n << " ";
  cout << endl;
  return 0;
}
