#include <bits/stdc++.h>
using namespace std;
long long stoll(string target) {
  stringstream s;
  s << target;
  long long w;
  s >> w;
  return w;
}
int stoi(string target) {
  stringstream s;
  s << target;
  int w;
  s >> w;
  return w;
}
string itos(int i) {
  stringstream s;
  s << i;
  return s.str();
}
string lltos(long long i) {
  stringstream s;
  s << i;
  return s.str();
}
int main() {
  ios::sync_with_stdio(false);
  bool ok = true, final = false;
  int i, j, k, n, m;
  int t;
  int br = 0, odgovor = 0, pom = 0, mom = 0, g = 0, f = 0, pamti = 0;
  int a[100001];
  memset((a), (0), sizeof((a)));
  cin >> n;
  for (i = 1; i <= (int)(n); i++) cin >> a[i];
  cout << a[2] - a[1] << " " << a[n] - a[1] << endl;
  for (i = 2; i <= (int)(n - 1); i++) {
    cout << min(abs(a[i] - a[i - 1]), abs(a[i] - a[i + 1])) << " "
         << max(abs(a[i] - a[1]), abs(a[i] - a[n])) << endl;
  }
  cout << a[n] - a[n - 1] << " " << a[n] - a[1] << endl;
  return 0;
}
