#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n], r[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  r[n - 1] = n - 1;
  for (int i = n - 2; i >= 0; i--) {
    if (arr[i] > arr[r[i + 1]])
      r[i] = i;
    else
      r[i] = r[i + 1];
  }
  for (int i = 0; i < n; i++) {
    if (r[i] == i) {
      cout << 0 << " ";
    } else
      cout << arr[r[i]] - arr[i] + 1 << " ";
  }
  return 0;
}
