#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,a,n) for(int i=(a); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define FOR(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it) #define ALLOF(c) (c).begin(), (c).end() typedef long long ll; int main(){ ios::sync_with_stdio(false); vector v; rep(i,6){ int a; cin >> a; v.push_back(a*100); } sort(ALLOF(v)); int ret = 0; REP(i,1,5){ ret += v[i]; } ret /= 4; cout << ret/100 << "." << ret%100 << endl; return 0; }