#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  int a;
  cin >> a;
  int* p = new int[a];
  vector<vector<int>> q(a, vector<int>(2));
  for (int i = 0; i < a; i++) {
    cin >> p[i];
  }
  q[0][0] = p[1] - p[0];
  q[0][1] = p[a - 1] - p[0];
  q[a - 1][0] = p[a - 1] - p[a - 2];
  q[a - 1][1] = p[a - 1] - p[0];
  for (int i = 1; i < a - 1; i++) {
    if (p[i] - p[i - 1] < p[i + 1] - p[i])
      q[i][0] = p[i] - p[i - 1];
    else
      q[i][0] = p[i + 1] - p[i];
    if (p[i] - p[0] < p[a - 1] - p[i])
      q[i][1] = p[a - 1] - p[i];
    else
      q[i][1] = p[i] - p[0];
  }
  for (int i = 0; i < a; i++) {
    for (int j = 0; j < 2; j++) cout << q[i][j] << " ";
    cout << '\n';
  }
}
