S = gets.split.map(&:to_i).sort[1,4].sum / 4.0 printf("%0.2f\n",S)