#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
long long z, n;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> z;
    v.push_back(z);
  }
  cout << v[1] - v[0] << " " << v[n - 1] - v[0] << endl;
  for (int i = 1; i < n - 1; i++) {
    cout << min(v[i] - v[i - 1], v[i + 1] - v[i]) << ' '
         << max(v[i] - v[0], v[n - 1] - v[i]) << endl;
  }
  cout << v[n - 1] - v[n - 2] << ' ' << v[n - 1] - v[0];
}
