s=$<.read.split.map &:to_i t=s.reduce(:+)-s.max-s.min printf "%.2f\n", t/4.0