#include <bits/stdc++.h>
using namespace std;
int n;
int x[200000];
double eps = 1e-9;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i];
  sort(x, x + n);
  double l = 0;
  double r = 2e9;
  int glFirst = -1;
  int first;
  int last;
  for (int it = 0; it < 200; it++) {
    double mid = (r + l) / 2;
    double x1 = x[0] + mid;
    double x2 = x[n - 1] - mid;
    first = -1;
    last = -1;
    for (int i = 0; i < n; i++) {
      if (fabs(x1 - x[i]) < mid || fabs(fabs(x1 - x[i]) - mid) < eps) continue;
      if (fabs(x2 - x[i]) < mid || fabs(fabs(x2 - x[i]) - mid) < eps) continue;
      if (first == -1) {
        first = i;
      }
      last = i;
    }
    if (first == -1) {
      r = mid;
    } else {
      double dist = x[last] - x[first];
      if (dist > 2 * mid && fabs(dist - 2 * mid) > eps) {
        l = mid;
      } else {
        r = mid;
        glFirst = first;
      }
    }
  }
  cout << fixed << setprecision(15) << l << "\n";
  cout << fixed << setprecision(15) << x[0] + l << " "
       << (glFirst == -1 ? x[0] + l : x[glFirst] + l) << " " << x[n - 1] - l;
  return 0;
}
