#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<long, long>;
double pi = 3.1415926535897932384626433;
long mod = 998244353;
long *stat_b;
long *next_reas;
long get(long it) {
  if (stat_b[it] != 0)
    return it;
  else
    return next_reas[it] = get(next_reas[it]);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long n;
  cin >> n;
  long a[n];
  for (long i = 0; i <= n - 1; ++i) cin >> a[i];
  long b[n];
  for (long i = 0; i <= n - 1; ++i) cin >> b[i];
  stat_b = new long[n];
  next_reas = new long[n];
  fill_n(stat_b, n, 0);
  fill_n(next_reas, n, 0);
  for (long i = 0; i <= n - 1; ++i) {
    ++stat_b[b[i]];
  }
  long last_reas = 0;
  for (long i = n - 1; i >= 0; --i) {
    next_reas[i] = last_reas;
    if (stat_b[i] > 0) last_reas = i;
  }
  long c[n];
  for (long i = 0; i <= n - 1; ++i) {
    c[i] = a[i];
    long it = get((n - a[i]) % n);
    --stat_b[it];
    c[i] = (a[i] + it) % n;
  }
  {
    for (long i = 0; i <= n - 1; ++i) {
      cout << c[i] << " ";
    };
    cout << "\n";
  };
  return 0;
}
