object Main extends App { val sc = new java.util.Scanner(System.in) val score = List.fill(6)(sc.nextDouble).sorted.tail.init.fold(.0)(_ + _) / 4.00 printf("%.2f", score); }