#include #include #include using namespace std; int main() { vector score(6); double sum=0; for (int i = 0; i < 6; i++) { cin >> score[i]; } sort(score.begin(),score.end()); score.pop_back(); score.erase(score.begin()+0); for (int i = 0; i < 4 ; i++) { sum += score[i]; } cout << sum / 4.0; return 0; }