#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  long long int arr[x];
  long long int arr1[x];
  for (long long i = 0; i < x; i++) {
    cin >> arr[i];
  }
  for (long long i = 0; i < x; i++) {
    long long q = arr[0];
    long long w = 0;
    if (i == 0) {
      q = fabs(arr[0] - arr[1]);
      w = fabs(arr[0] - arr[x - 1]);
    } else if (i == x - 1) {
      q = fabs(arr[i] - arr[i - 1]);
      w = fabs(arr[i] - arr[0]);
    } else {
      q = min(fabs(arr[i] - arr[i - 1]), fabs(arr[i] - arr[i + 1]));
      w = max(fabs(arr[i] - arr[x - 1]), fabs(arr[i] - arr[0]));
    }
    cout << q << " " << w << endl;
  }
}
