#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
const long long LONG_INF = 1e18;
const int INT_INF = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vector<int> a(n), b(n), c(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (int j = 0; j < n; ++j) {
    cin >> b[j];
  }
  multiset<int> mset;
  for (int x : b) {
    mset.insert(x);
  }
  for (int i = 0; i < n; ++i) {
    int x = n - a[i];
    if (x == n) {
      c[i] = *mset.begin();
      mset.erase(mset.begin());
      continue;
    }
    auto itl = mset.lower_bound(x);
    if (itl == mset.end()) {
      c[i] = (*mset.begin() + a[i]);
      mset.erase(mset.begin());
      continue;
    }
    if (*itl == x) {
      c[i] = (x + a[i]) % n;
      mset.erase(itl);
    } else {
      auto itr = mset.upper_bound(x);
      if (itr == mset.end()) {
        c[i] = (*mset.begin() + a[i]) % n;
        mset.erase(mset.begin());
      } else {
        c[i] = (*itr + a[i]) % n;
        mset.erase(itr);
      }
    }
  }
  for (int x : c) {
    cout << x << ' ';
  }
  return 0;
}
