#include <bits/stdc++.h>
using namespace std;
int main(int argv, char** argc) {
  cin.sync_with_stdio(0);
  int n;
  cin >> n;
  int nums[n];
  for (typeof(n) i = 0; i < n; i++) {
    cin >> nums[i];
  }
  for (typeof(n) i = 0; i < n; i++) {
    int min_dist = INT_MAX;
    if (i > 0) min_dist = nums[i] - nums[i - 1];
    if (i < n - 1) min_dist = min(min_dist, nums[i + 1] - nums[i]);
    int max_dist = max(nums[i] - nums[0], nums[n - 1] - nums[i]);
    printf("%d %d\n", min_dist, max_dist);
  }
  return 0;
}
