#include <bits/stdc++.h>
using namespace std;
int n;
int pos[210000];
double minim, maxim;
double ansmid;
bool check(double mid) {
  int left = 0, right = 0;
  for (int i = 0; i < n; ++i) {
    if (minim + mid * 2 >= (double)pos[i]) {
      left++;
    } else
      break;
  }
  for (int i = n - 1; i >= 0; --i) {
    if (maxim - mid * 2 <= (double)pos[i]) {
      right++;
    } else
      break;
  }
  double di = (pos[n - right - 1] - pos[left]);
  di /= 2;
  ansmid = pos[left] + di;
  if (left + right >= n || di <= 0.0 || di <= mid) return 1;
  return 0;
}
void solve() {
  minim = 1e+10, maxim = 0;
  ansmid = -1.0;
  for (int i = 0; i < (n); ++i) {
    scanf("%d", &pos[i]);
    if (minim > pos[i]) minim = pos[i];
    if (maxim < pos[i]) maxim = pos[i];
  }
  sort(pos, pos + n);
  if (n <= 3) {
    double dpos[3];
    for (int i = 0; i < (n); ++i) dpos[i] = pos[i];
    if (n == 3) {
      printf("%.f\n", 0.0);
      printf("%.6f %.6f %.6f\n", dpos[0], dpos[1], dpos[2]);
    }
    if (n == 2) {
      printf("%.f\n", 0.0);
      printf("%.6f %.6f %.6f\n", dpos[0], dpos[1], dpos[0] + dpos[1]);
    }
    if (n == 1) {
      printf("%.f\n", 0.0);
      printf("%.6f %.6f %.6f\n", dpos[0], dpos[0] * 2, dpos[0] * 3);
    }
    return;
  }
  double left = 0, right = 1e+10, d = 1e+10;
  double mid, base1, base2, base3;
  for (int i = 0; i < 100; ++i) {
    mid = (left + right) * 0.5;
    if (check(mid)) {
      if (d > mid) d = mid;
      right = mid;
    } else {
      left = mid;
    }
  }
  printf("%.6f\n", d);
  printf("%.6f %.6f %.6f\n", minim + d, ansmid, maxim - d);
}
int main() {
  while (cin >> n) {
    solve();
  }
}
