#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 9;
const long long N = 500500;
signed main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cout.precision(10);
  cout << fixed;
  long long n, t;
  cin >> n;
  vector<long long> a(n);
  multiset<long long> ms;
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n; i++) {
    cin >> t;
    ms.insert(t);
  }
  for (long long i = 0; i < n; i++) {
    long long p;
    if (a[i] == 0) {
      p = 0;
    } else {
      p = n - a[i];
    }
    auto it = ms.lower_bound(p);
    if (it != ms.end()) {
      cout << (a[i] + *it) % n << " ";
      ms.erase(it);
      continue;
    }
    it = ms.lower_bound(0);
    cout << (a[i] + *it) % n << " ";
    ms.erase(it);
  }
  return 0;
}
