#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int64_t n;
  cin >> n;
  int64_t arr[n];
  for (int64_t i = 0; i < n; ++i) cin >> arr[i];
  for (int64_t i = 0; i < n; ++i) {
    int64_t minn = 1e18, maxx = 0;
    if (i - 1 >= 0) minn = arr[i] - arr[i - 1];
    if (i + 1 < n) minn = min(minn, arr[i + 1] - arr[i]);
    maxx = max(arr[i] - arr[0], arr[n - 1] - arr[i]);
    cout << minn << " " << maxx << endl;
  }
  return 0;
}
