#include <bits/stdc++.h>
using namespace std;
int n;
int prev(int u) { return u == 0 ? n - 1 : u - 1; }
int next(int u) { return u == n - 1 ? 0 : u + 1; }
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    cout << min(abs(arr[prev(i)] - arr[i]), abs(arr[next(i)] - arr[i])) << " ";
    cout << max(abs(arr[0] - arr[i]), abs(arr[i] - arr[n - 1])) << endl;
  }
  return 0;
}
