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