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