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