#include <bits/stdc++.h>
using namespace std;
void open() {
  freopen("A.in", "r", stdin);
  freopen("A.out", "w", stdout);
}
void close() {
  fclose(stdin);
  fclose(stdout);
}
const int MAXN = 1e5 + 10;
int a[MAXN] = {0};
int Max[MAXN] = {0};
int Min[MAXN] = {0};
int n;
void init() {
  scanf("%d", &n);
  for (int i = 1, END = n; i <= END; i++) scanf("%d", &a[i]);
  Max[1] = a[n] - a[1];
  Min[1] = a[2] - a[1];
  Max[n] = a[n] - a[1];
  Min[n] = a[n] - a[n - 1];
  for (int i = 2, END = n - 1; i <= END; i++) {
    Max[i] = max(a[n] - a[i], a[i] - a[1]);
    Min[i] = min(a[i + 1] - a[i], a[i] - a[i - 1]);
  }
  for (int i = 1, END = n; i <= END; i++) printf("%d %d\n", Min[i], Max[i]);
}
int main() {
  init();
  close();
  return 0;
}
