#include <bits/stdc++.h>
using namespace std;
void dbg_out() { cerr << endl; }
template <typename Head, typename... Tail>
void dbg_out(Head H, Tail... T) {
  cerr << ' ' << H;
  dbg_out(T...);
}
const int N = 2 * 1e5 + 10;
int n, a[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int x;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  multiset<int> b;
  for (int i = 0; i < n; i++) {
    cin >> x;
    b.insert(x);
  }
  for (int i = 0; i < n; i++) {
    auto it = b.lower_bound(n - a[i]);
    if (it == b.end()) it = b.begin();
    cout << (a[i] + *it) % n << ' ';
    b.erase(it);
  }
  cout << '\n';
  return 0;
}
