#include <bits/stdc++.h>
using namespace std;
long long mexp(long long a, long long b) {
  long long ans = 1;
  a %= 1000000007;
  while (b) {
    if (b & 1) ans = ans * a % 1000000007;
    b >>= 1;
    a = a * a % 1000000007;
  }
  return ans;
}
long long gcd(long long a, long long b) {
  if (a == 0) {
    return b;
  }
  return gcd(b % a, a);
}
long long f(long long x) {
  x++;
  while (x % 10 == 0) {
    x /= 10;
  }
  return x;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n], b[n], c[n];
  multiset<int> s;
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  for (long long i = 0; i < n; ++i) {
    cin >> b[i];
    s.insert(b[i]);
  }
  for (long long i = 0; i < n; ++i) {
    auto it = s.lower_bound(n - a[i]);
    if (it == s.end()) {
      it = s.begin();
    }
    c[i] = (a[i] + *it) % n;
    s.erase(it);
  }
  for (long long i = 0; i < n; ++i) {
    cout << c[i] << " ";
  }
  cerr << 1.0 / CLOCKS_PER_SEC << endl;
  return 0;
}
