#include <bits/stdc++.h>
using namespace std;
long long n, m, a[100001], b, c;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; i++) {
    if (i == 1)
      cout << a[2] - a[1] << " " << a[n] - a[1] << "\n";
    else if (i == n)
      cout << a[n] - a[n - 1] << " " << max(a[i] - a[1], a[n] - a[i]) << "\n";
    else
      cout << min(a[i] - a[i - 1], a[i + 1] - a[i]) << " "
           << max(a[i] - a[1], a[n] - a[i]) << "\n";
  }
}
