#include #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() using namespace std; typedef long long LL; typedef vector VI; int main() { int s[6]; REP(i, 6) cin >> s[i]; sort(s, s + 6); double ans = 0; for (int i = 1; i < 5; i++) ans += s[i]; cout << setprecision(2) << fixed << ans / 4.0 << endl; return 0; }