#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
  int s;
  vector<int> v;
  for(int i=0; i<6; ++i){
    cin>>s;
    v.push_back(s);
  }
  sort(v.begin(),v.end());
  int x;
  x=0;
  for(int i=1; i<5; ++i){
    x+=v[i];
  }
  double a;
  a=x;
  a/=4;
  cout<<fixed<<setprecision(2)<<a<<endl;
  return 0;
}