#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  scanf("%lld", &n);
  vector<long long> a(n), c;
  multiset<long long> b;
  for (long long i = 0; i < n; i++) scanf("%lld", &a[i]);
  for (long long i = 0; i < n; i++) {
    long long temp;
    scanf("%lld", &temp);
    b.insert(temp);
  }
  for (long long i = 0; i < n; i++) {
    long long temp = n - a[i];
    auto it = b.lower_bound(temp);
    if (it == b.end()) {
      printf("%lld ", (a[i] + (*b.begin())) % n);
      b.erase(b.begin());
    } else {
      printf("%lld ", (a[i] + (*it)) % n);
      b.erase(it);
    }
  }
  printf("\n");
}
