include
include
include
using namespace std;
int main(){
float array[10];
for(int i = 0 ; i < 7; i++) {
cin >> array[i];
}
sort(array, array + 7);
float sum = 0;
for(int i = 1; i < 6; i++) {
sum += array[i];
}
cout << fixed << setprecision(2) << sum / 5 << endl;
return 0;
}