#include <bits/stdc++.h>
using namespace std;
const double inf = 2 * 1e9 + 5;
int main() {
  int n;
  cin >> n;
  vector<int> nab(n);
  vector<int> mi(n, inf);
  vector<int> ma(n, 0);
  for (int i = 0; i < n; i++) {
    cin >> nab[i];
  }
  mi[0] = nab[1] - nab[0];
  mi[n - 1] = nab[n - 1] - nab[n - 2];
  ma[n - 1] = nab[n - 1] - nab[0];
  ma[0] = ma[n - 1];
  for (int i = 1; i < n - 1; i++) {
    mi[i] = min(nab[i] - nab[i - 1], nab[i + 1] - nab[i]);
    ma[i] = max(nab[n - 1] - nab[i], nab[i] - nab[0]);
  }
  for (int i = 0; i < n; i++) {
    cout << mi[i] << " " << ma[i] << endl;
  }
  return 0;
}
