printf "%.2f\n",(gets.split.map &:to_f).sort[1,4].reduce(:+)/4