import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class No394 { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] temp = br.readLine().split(" "); int[] points = new int[temp.length]; for(int i =0; i < temp.length; i++) points[i] = Integer.parseInt(temp[i]); System.out.printf("%.2f",getAve(points)); }catch(Exception e){ e.getStackTrace(); } } public static double getAve(int[] x){ Arrays.sort(x); double sum = 0; double ave = 0; for(int i=1; i < x.length - 1; i++) sum += x[i]; ave = sum / (x.length - 2); return ave; } }