#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  while (scanf("%d", &N) != EOF) {
    set<double> st;
    double lowest = 1e12, highest = 0;
    for (int j = 0; j < (int)(N); ++j) {
      int x;
      scanf("%d", &x);
      st.insert((double)x);
      lowest = min(lowest, (double)x);
      highest = max(highest, (double)x);
    }
    double lo = 0, hi = 2e9;
    double center = lowest;
    for (int itr = 0; itr < (int)(80); ++itr) {
      double mid = (lo + hi) / 2.0;
      double eps = 1e-9;
      set<double>::iterator lower = st.lower_bound(lowest + mid * 2 + eps);
      set<double>::iterator upper = st.lower_bound(highest - mid * 2 - eps);
      if (lower == st.end() || upper == st.begin()) {
        hi = mid;
        continue;
      }
      upper--;
      if ((*upper) - (*lower) < mid * 2 + eps) {
        center = ((*upper) + (*lower)) / 2.0;
        hi = mid;
      } else
        lo = mid;
    }
    printf("%.6f\n", lo);
    printf("%.6f %.6f %.6f\n", lowest + lo, center, highest - lo);
  }
}
