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