import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int[] ar = new int[6]; for (int i=0; i<6; i++) { ar[i] = sc.nextInt(); } Arrays.sort(ar); double total = 0; for (int i=1; i<5; i++) { total += ar[i]; } System.out.println(total/4); } }