#include <stdio.h> int main() { int a; int max=0; int min=100; float sum=0.0; int count=0; while(scanf("%d",&a)!=EOF){ max=max>a?max:a; min=min<a?min:a; sum+=a; count++; if(count==7){ printf("%.2f\n",(float)(sum-max-min)/5); max=0; min=100; sum=0.0; count=0; } } }