#include using namespace std; #define REP(i,n) for(int i=0;i ostream& operator<<(ostream& os,const vector& vec){ os << "["; for(const auto& v : vec){ os << v << ","; } os << "]"; return os; } typedef long long ll; typedef unsigned long long ull; typedef pair pii; typedef vector vi; typedef vector vvi; int main(){ vector s(6); rep(i,6) cin>>s[i]; sort(ALL(s)); double ans=0; for(int i=1;i<5;i++) ans += s[i]; printf("%.2f\n",ans/4); }