import java.util.*; public class pre { public static void main(String[] args) { Scanner s = new Scanner(System.in); int j[] = new int[6]; for(int i=0;i<6;i++){ j[i] = s.nextInt(); } Arrays.sort(j); System.out.printf("%.2f\n",(double)(j[1] + j[2] + j[3] + j[4]) / 4.0); } }