#include <bits/stdc++.h>
using namespace std;
int64_t func(int64_t p, int64_t q) {
  int64_t x;
  if (p < 0 && q < 0 && p < q) {
    x = q - p;
  } else if (p < 0 && q < 0 && p > q) {
    x = p - q;
  } else if (p < 0 && q >= 0) {
    x = q - p;
  } else if (p >= 0 && q >= 0 && p > q) {
    x = p - q;
  } else if (p >= 0 && q >= 0 && p < q) {
    x = q - p;
  } else if (p >= 0 && q < 0) {
    x = p - q;
  }
  return x;
}
int main(void) {
  int64_t n;
  cin >> n;
  vector<int64_t> vec;
  vector<int64_t> vec1;
  int64_t p;
  for (int i = 0; i < n; i++) {
    cin >> p;
    vec.push_back(p);
  }
  int64_t x;
  int64_t l;
  int64_t m;
  for (int i = 0; i < n; i++) {
    x = vec[i];
    if (i != 0 && i != n - 1) {
      l = func(vec[i - 1], x);
      m = func(x, vec[i + 1]);
      cout << min(l, m) << " ";
      l = func(vec[0], x);
      m = func(x, vec[n - 1]);
      cout << max(l, m) << endl;
    }
    if (i == 0) {
      m = func(x, vec[i + 1]);
      cout << m << " ";
      m = func(x, vec[n - 1]);
      cout << m << endl;
    }
    if (i == n - 1) {
      l = func(vec[i - 1], x);
      cout << l << " ";
      l = func(vec[0], x);
      cout << l << endl;
    }
  }
}
