#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, del, mn, mx;
  vector<int> v;
  vector<pair<long long, long long>> p;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> del;
    v.push_back(del);
  }
  for (int i = 0; i < n; i++) {
    if (i == 0) {
      p.push_back({abs(v[0] - v[1]), abs(v[0] - v[n - 1])});
    } else if (i == n - 1) {
      p.push_back({abs(v[n - 1] - v[n - 2]), abs(v[n - 1] - v[0])});
    } else {
      p.push_back({min(abs(v[i] - v[i - 1]), abs(v[i] - v[i + 1])),
                   max(abs(v[i] - v[n - 1]), abs(v[i] - v[0]))});
    }
  }
  for (auto a : p) {
    cout << a.first << " " << a.second << endl;
  }
  return 0;
}
