#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);
  multiset<int> ms;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    cin >> data;
    ms.insert(data);
  }
  for (int i = 0; i < n; i++) {
    auto itr = ms.upper_bound(n - arr[i] - 1);
    if (itr == ms.end()) itr = ms.begin();
    brr[i] = *itr;
    ms.erase(itr);
  }
  for (int i = 0; i < n; i++) cout << (arr[i] + brr[i]) % n << " ";
  cout << endl;
  return 0;
}
