#include <bits/stdc++.h>
using namespace std;
const long long MAX = 5e5;
multiset<long long> s;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> a;
  for (long long i = 0; i < (long long)n; i++) {
    long long num;
    cin >> num;
    a.push_back(num);
  }
  for (long long i = 0; i < (long long)n; i++) {
    long long num;
    cin >> num;
    s.insert(num);
  }
  for (long long i = 0; i < (long long)n; i++) {
    long long x = (n - a[i]) % n;
    auto it = s.lower_bound(x);
    if (it == s.end()) {
      it = s.lower_bound(0);
    }
    cout << (a[i] + (*it)) % n << " ";
    s.erase(it);
  }
  return 0;
}
