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