#include <bits/stdc++.h>
using namespace std;
;
const long long INF64 = 0X3F3F3F3F3F3F3F3F;
const int INF32 = 0x3F3F3F3F;
const int mod = 1e6 + 3;
const int mod2 = 1e9 + 9;
const int N = 1e7 + 2;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int t;
  vector<int> a(n), ans(n);
  multiset<int> S;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < n; ++i) {
    cin >> t;
    S.insert(t % n);
  }
  for (int i = 0; i < n; ++i) {
    auto j = S.lower_bound((n - a[i]) % n);
    if (j == S.end()) j = S.begin();
    ans[i] = *j;
    S.erase(j);
  }
  for (int i = 0; i < n; ++i) {
    cout << (a[i] + ans[i]) % n << ' ';
  }
  return 0;
}
