#include <iostream>
#include <fstream>
using namespace std;
int main()
{
float m[4],p[4],t[4],h[4],dtb[4];
ifstream fileInput("input.txt");
ofstream fileOutput("output.txt");
for(int i=0;i<4;i++){
fileInput>>m[i]>>p[i]>>t[i]>>h[i];
dtb[i]=(m[i]+m[i]+t[i]+h[i])/4;
}
for(int i=0;i<4;i++){
fileOutput<<dtb[i]<<endl;
}
fileInput.close();
fileOutput.close();
//samon247
return 0;
}