#include <bits/stdc++.h>
int main(void) {
  int n, i, min, max, p, q;
  scanf("%d", &n);
  int a[n];
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  printf("%d %d\n", (a[1] - a[0]), (a[n - 1] - a[0]));
  for (i = 1; i < n - 1; i++) {
    p = a[i] - a[i - 1];
    q = a[i + 1] - a[i];
    if (p > q)
      min = q;
    else
      min = p;
    p = a[i] - a[0];
    q = a[n - 1] - a[i];
    if (p > q)
      max = p;
    else
      max = q;
    printf("%d %d\n", min, max);
  }
  printf("%d %d\n", (a[n - 1] - a[n - 2]), (a[n - 1] - a[0]));
  return 0;
}
