#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); vector a(6); for(int i = 0; i < 6; i++) { cin >> a[i]; } sort(a.begin(), a.end()); double s = 0; for(int i = 1; i < 5; i++) { s += a[i]; } s /= 4; printf("%.2f\n", s); return 0; }