#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    a[i] = x % n;
  }
  multiset<int> b;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    b.insert(x % n);
  }
  for (int i = 0; i < n; i++) {
    int req = (n - a[i]) % n;
    multiset<int>::iterator it;
    it = b.lower_bound(req);
    if (it == b.end()) it = b.begin();
    cout << ((*it) + a[i]) % n << " ";
    b.erase(it);
  }
  return 0;
}
