#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    long long int n;
    cin >> n;
    vector<long long int> a(n), b(n);
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    multiset<long long int> st;
    for (int i = 0; i < n; i++) {
      cin >> b[i];
      st.insert(b[i]);
    }
    for (int i = 0; i < n; i++) {
      if (st.find(n - a[i]) != st.end()) {
        cout << 0 << " ";
        st.erase(st.find(n - a[i]));
      } else {
        auto it = st.upper_bound(n - a[i]);
        if (it == st.end()) {
          cout << (a[i] + *st.begin()) % n << " ";
          st.erase(st.begin());
        } else {
          cout << (a[i] + *it) % n << " ";
          st.erase(it);
        }
      }
    }
    cout << "\n";
  }
  return 0;
}
