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