#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
long long n, a[N], c[N];
multiset<int> s;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int x;
  for (int i = 0; i < n; i++) {
    cin >> x;
    s.insert(x);
  }
  multiset<int>::iterator it;
  for (int i = 0; i < n; i++) {
    it = s.lower_bound(n - a[i]);
    if (it == s.end()) it = s.begin();
    c[i] = (a[i] + *it) % n;
    s.erase(it);
  }
  for (int i = 0; i < n; i++) cout << c[i] << " ";
  cout << endl;
  return 0;
}
