#include <bits/stdc++.h>
using namespace std;
long long max(long long x, long long y) { return x > y ? x : y; }
long long min(long long x, long long y) { return x < y ? x : y; }
void _(long long& a, long long b) {
  a = (a % 1000000007 + b % 1000000007) % 1000000007;
  a = (a + 1000000007) % 1000000007;
}
long long cl(long long a, long long b) { return (a / b) + (!(!(a % b))); }
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  long long a[n];
  long long b[n];
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  multiset<long long> s;
  for (long long i = 0; i < n; ++i) {
    long long d;
    cin >> d;
    s.insert(d);
  }
  long long c[n];
  for (long long i = 0; i < n; ++i) {
    auto it = s.lower_bound(n - a[i]);
    if (it == s.end()) {
      c[i] = (a[i] + (*s.begin())) % n;
      s.erase(s.begin());
    } else {
      c[i] = (a[i] + (*it)) % n;
      s.erase(it);
    }
  }
  for (long long i = 0; i < n; ++i) {
    cout << c[i] << " ";
  }
}
