#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c[100008], fuck_u_hackerrank;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> c[i];
  }
  for (int i = 0; i < n; i++) {
    if (i == 0)
      cout << (int)abs(c[i] - c[i + 1]) << " ";
    else if (i == n - 1)
      cout << (int)abs(c[i] - c[i - 1]) << " ";
    else
      abs(c[i] - c[i - 1]) < (abs(c[i] - c[i + 1]))
          ? cout << (int)abs(c[i] - c[i - 1]) << " "
          : cout << (int)abs(c[i] - c[i + 1]) << " ";
    abs(c[i] - c[0]) > (abs(c[i] - c[n - 1]))
        ? cout << (int)abs(c[i] - c[0]) << " "
        : cout << (int)abs(c[i] - c[n - 1]) << " ";
    cout << endl;
  }
  return 0;
}
