#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x = 0, y = 0;
  cin >> n;
  int *C = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> C[i];
  }
  for (int j = 0; j < n; j++) {
    if (j == 0) {
      y = abs(C[j] - C[j + 1]);
      x = abs(C[j] - C[n - 1]);
    } else if (j == n - 1) {
      x = max(abs(C[j] - C[n - 1]), abs(C[j] - C[0]));
      y = abs(C[j] - C[j - 1]);
    } else {
      x = max(abs(C[j] - C[n - 1]), abs(C[j] - C[0]));
      y = min(abs(C[j] - C[j + 1]), abs(C[j] - C[j - 1]));
    }
    cout << y << " " << x << endl;
  }
}
