#include <bits/stdc++.h>
using namespace std;
int main() {
  int no, h;
  vector<long long int> house;
  cin >> no;
  for (int i = 0; i < no; i++) {
    cin >> h;
    house.push_back(h);
  }
  cout << abs(house[0] - house[1]) << " " << abs(house[0] - house[no - 1])
       << "\n";
  for (int i = 1; i < no - 1; i++) {
    int min =
        std::min(abs(house[i] - house[i + 1]), abs(house[i] - house[i - 1]));
    int max = std::max(abs(house[i] - house[0]), abs(house[i] - house[no - 1]));
    cout << min << " " << max << "\n";
  }
  cout << abs(house[no - 1] - house[no - 2]) << " "
       << abs(house[0] - house[no - 1]) << "\n";
}
