import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); double sum = 0, mn = 100, mx = 0; while (sc.hasNext()){ double n = sc.nextDouble(); sum += n; if(mx < n) mx = n; if(mn > n) mn = n; } System.out.printf("%.2f", (sum - mn - mx)/5); } }