#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int N;
  cin >> N;
  int A[N];
  multiset<int> B;
  for (int i = 0; i < N; ++i) {
    cin >> A[i];
  }
  for (int i = 0; i < N; ++i) {
    int x;
    cin >> x;
    B.insert(x);
  }
  for (int i = 0; i < N; ++i) {
    auto it = B.lower_bound(N - A[i]);
    if (it != B.end()) {
      A[i] = (A[i] + (*it)) % N;
      B.erase(it);
    } else {
      auto z = B.begin();
      A[i] = (A[i] + (*z)) % N;
      B.erase(z);
    }
  }
  for (int i = 0; i < N; ++i) {
    cout << A[i] << " ";
  }
  return 0;
}
