#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ar[n], br[n], cr[n];
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
    br[i] = 0;
    cr[i] = -1;
  }
  int max = ar[n - 1];
  br[n - 1] = max;
  cr[n - 1] = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (max < ar[i]) {
      max = ar[i];
      cr[i] = 0;
    }
    br[i] = max;
  }
  for (int i = 0; i < n; i++) {
    if (cr[i] != 0) {
      cr[i] = br[i] - ar[i] + 1;
    }
    cout << cr[i] << " ";
  }
  return 0;
}
