#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pll = pair<ll, ll>;
using pii = pair<int, int>;
const int MOD = 1e9 + 7;
const int MAX = 2e5 + 5;
const ll INF = 1e18 + 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> a(n), b(n);
  for (auto&& i : a) cin >> i;
  for (auto&& i : b) cin >> i;
  multiset<int> s;
  for (auto i : b) s.insert(i);
  vector<int> ans(n);
  for (int i = 0; i < n - 1; i++) {
    int x = (a[i] + *s.begin()) % n, y;
    auto z = s.upper_bound(n - a[i] - 1);
    if (z != s.end())
      y = (a[i] + *z) % n;
    else {
      ans[i] = x;
      s.erase(s.begin());
      continue;
    }
    if (x < y) {
      ans[i] = x;
      s.erase(s.begin());
    } else {
      ans[i] = y;
      s.erase(z);
    }
  }
  ans.back() = (a.back() + *s.begin()) % n;
  for (auto i : ans) cout << i << " ";
  return 0;
}
