#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  pair<int, int> p[100000];
  int arr[100000];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  cout << arr[1] - arr[0] << " " << arr[n - 1] - arr[0] << endl;
  int a1, a2, a3;
  int b1, b2, b3;
  for (int i = 1; i < n - 1; i++) {
    a2 = arr[i] - arr[i - 1];
    a3 = arr[i + 1] - arr[i];
    if (a2 < a3)
      cout << a2;
    else
      cout << a3;
    cout << " ";
    b1 = arr[n - 1] - arr[i];
    b2 = arr[i] - arr[0];
    if (b1 > b2)
      cout << b1;
    else
      cout << b2;
    cout << endl;
  }
  cout << arr[n - 1] - arr[n - 2] << " " << arr[n - 1] - arr[0];
}
