#include <bits/stdc++.h>
using namespace std;
template <class T>
T Abs(T x) {
  return x > 0 ? x : -x;
}
template <class T>
T Max(T a, T b) {
  return a > b ? a : b;
}
template <class T>
T Min(T a, T b) {
  return a < b ? a : b;
}
template <class T>
T gcd(T a, T b) {
  return (b ? gcd(b, a % b) : a);
}
bool isVowel(char ch) {
  ch = tolower(ch);
  return (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u');
}
int main() {
  int i, j, k, n, m, p;
  while (scanf("%d", &n) == 1) {
    vector<int> v(n);
    for (int i = (0); i < (n); ++i) scanf("%d", &v[i]);
    printf("%d %d\n", v[1] - v[0], v[n - 1] - v[0]);
    for (int i = (1); i < (n - 1); ++i) {
      j = v[i] - v[i - 1];
      k = v[i + 1] - v[i];
      m = Min(j, k);
      p = Max(v[i] - v[0], v[n - 1] - v[i]);
      printf("%d %d\n", m, p);
    }
    printf("%d %d\n", v[n - 1] - v[n - 2], v[n - 1] - v[0]);
  }
  return 0;
}
