#include <bits/stdc++.h>
using namespace std;
int const N = 1e6 + 5;
int n, m, arr[N], b[N], cnt = 0, ma;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  ma = -100;
  for (int i = n - 1; i >= 0; i--) {
    if (ma < arr[i]) {
      ma = arr[i];
    } else {
      b[i] = ma - arr[i] + 1;
    }
  }
  for (int i = 0; i < n; i++) {
    printf("%d ", b[i]);
  }
}
