#include <bits/stdc++.h>
using namespace std;
void optimizeIO() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  optimizeIO();
  int n;
  cin >> n;
  int a[n], b[n], x;
  map<int, int> m;
  int max_;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  multiset<int> s;
  for (int i = 0; i < n; i++) {
    cin >> x;
    s.insert(x);
  }
  for (int i = 0; i < n; i++) {
    int t = (n - a[i]) % n;
    auto it = s.lower_bound(t);
    if (it == s.end()) it = s.begin();
    cout << ((a[i] + (*it)) % n) << " ";
    s.erase(it);
  }
  cout << endl;
}
