s=$<.read.split.map &:to_f;printf"%.2f\n",(s-s.minmax).reduce(:+)/4