#include int main(void){ float n,m=100,M=0,s=0; for(int i=0;i<6;i++){ scanf("%f",&n); s+=n; m=m>n?n:m; M=M>n?M:n; }printf("%.2f",(s-m-M)/4); }