#include <bits/stdc++.h>
using namespace std;
long long n, mi, mx;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  long long a[n];
  for (int i = 0; i < n && cin >> a[i]; i++)
    ;
  cout << abs(a[0] - a[1]) << " " << abs(a[0] - a[n - 1]) << endl;
  for (int i = 1; i < n - 1; i++) {
    mi = abs((a[i]) - (a[i - 1]));
    mx = abs((a[i]) - (a[i + 1]));
    cout << min(mi, mx) << " ";
    mi = abs((a[i]) - (a[n - 1]));
    mx = abs((a[i]) - (a[0]));
    cout << max(mi, mx) << endl;
  }
  cout << abs((a[n - 1]) - (a[n - 2])) << " " << abs(a[n - 1] - a[0]);
  return 0;
}
