#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int a;
  int b;
  int min = abs(arr[0] - arr[1]);
  cout << min << " ";
  int ma = abs(arr[0] - arr[n - 1]);
  cout << ma << endl;
  ;
  for (int i = 1; i < n; i++) {
    for (int j = 2; i < n - 1; i++) {
      a = abs(arr[i] - arr[i + 1]);
      b = abs(arr[i] - arr[i - 1]);
      if (a < b) {
        cout << a << " ";
        int maa = max(abs(arr[i] - arr[n - 1]), abs(arr[i] - arr[0]));
        cout << maa << endl;
      } else {
        cout << b << " ";
        int maa = max(abs(arr[i] - arr[n - 1]), abs(arr[i] - arr[0]));
        cout << maa << endl;
      }
    }
  }
  cout << abs(arr[n - 1] - arr[n - 2]) << " ";
  int maa = abs(arr[n - 1] - arr[0]);
  cout << maa;
  return 0;
}
