#include <bits/stdc++.h>
using namespace std;
const int NMAX = 2 * 1e5 + 1;
int n, a[NMAX], b[NMAX], c[NMAX];
bool pris[NMAX];
multiset<int> elements;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    elements.insert(b[i]);
  }
  for (int i = 0; i < n; i++) {
    int obj = n - a[i];
    multiset<int>::iterator it;
    it = elements.lower_bound(obj);
    if (it == elements.end()) {
      it = elements.lower_bound(-n);
    }
    c[i] = (a[i] + *it) % n;
    elements.erase(it);
  }
  for (int i = 0; i < n; i++) {
    cout << c[i] << ' ';
  }
  cout << '\n';
}
