#include <bits/stdc++.h>
using namespace std;
vector<int> cts;
int n;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  cts.resize(n);
  for (int i = 0; i < n; ++i) cin >> cts[i];
  cout << cts[1] - cts[0] << " " << cts[n - 1] - cts[0] << endl;
  for (int i = 1; i < n - 1; ++i)
    cout << min(cts[i + 1] - cts[i], cts[i] - cts[i - 1]) << " "
         << max(cts[n - 1] - cts[i], cts[i] - cts[0]) << endl;
  cout << cts[n - 1] - cts[n - 2] << " " << cts[n - 1] - cts[0] << endl;
  return 0;
}
