#include <bits/stdc++.h>
using namespace std;
void cost_to_send_mail(int number_of_cities,
                       vector<long int> cities_coordinates) {
  long int smallest_to_pay = 0;
  long int biggest_to_pay = 0;
  int count = 0;
  for (int i = 0; i < number_of_cities; i++) {
    if (abs(cities_coordinates[i] - (cities_coordinates[abs(i - 1)])) <
        abs(cities_coordinates[i] -
            (cities_coordinates[(i + 1) % number_of_cities]))) {
      smallest_to_pay =
          abs(cities_coordinates[i] - (cities_coordinates[abs(i - 1)]));
    } else {
      smallest_to_pay = abs(cities_coordinates[i] -
                            (cities_coordinates[(i + 1) % number_of_cities]));
    }
    if (abs(cities_coordinates[i] - cities_coordinates[0]) >
        abs(cities_coordinates[i] - cities_coordinates[number_of_cities - 1])) {
      biggest_to_pay = abs(cities_coordinates[i] - cities_coordinates[0]);
    } else {
      biggest_to_pay =
          abs(cities_coordinates[i] - cities_coordinates[number_of_cities - 1]);
    }
    cout << smallest_to_pay << " " << biggest_to_pay << endl;
    count++;
  }
}
int main() {
  int number_of_cities;
  cin >> number_of_cities;
  vector<long int> cities_coordinates(number_of_cities);
  for (int i = 0; i < number_of_cities; i++) {
    cin >> cities_coordinates[i];
  }
  cost_to_send_mail(number_of_cities, cities_coordinates);
}
