#include <bits/stdc++.h>
using namespace std;
vector<long long> p;
long long M, mn, mx, h1, h2;
set<long long> st;
long long n, b;
bool check(long long d) {
  if (d >= M) {
    h1 = mn;
    h2 = mx;
    return 1;
  }
  h1 = *(upper_bound(p.begin(), p.end(), mn + d));
  h2 = *(--(lower_bound(p.begin(), p.end(), mx - d)));
  return (h2 - h1 <= d);
}
int main() {
  ios_base::sync_with_stdio(0);
  scanf("%d", &n);
  st.insert(-100);
  st.insert(200000000001LL);
  mn = 2000000000000LL;
  mx = -1;
  for (int i = 0; i <= (int)(n)-1; i++) {
    scanf("%d", &b);
    st.insert(b);
    mn = ((mn) < (b) ? mn : b);
    mx = ((mx) < (b) ? b : mx);
  }
  for (set<long long>::iterator it = st.begin(); it != st.end(); it++)
    p.push_back(*it);
  long long lo = 0, hi = 200000000000LL, mid;
  M = mx - mn;
  while (hi - lo > 1) {
    mid = (hi + lo) / 2;
    if (check(mid))
      hi = mid;
    else
      lo = mid;
  }
  if (check(lo))
    mid = lo;
  else
    mid = hi;
  check(mid);
  double D = 0.5 * mid;
  printf("%.6f\n%.6f %.6f %.6f", D, double(mn) + D, 0.5 * (h1 + h2),
         double(mx) - D);
  return 0;
}
