#include <bits/stdc++.h>
using namespace std;
class Student
{
private:
string name;
string id;
double scoreCpp, scoreEng, scoreMath;
double all = 0, ave = 0;
public:
Student() {}
~Student() {}
Student(string a, string b, double c, double d, double e)
{
name = a;
id = b;
scoreCpp = c;
scoreEng = d;
scoreMath = e;
}
void calAndDisp()
{
all = scoreCpp+scoreEng+scoreMath;
ave = all/3;
cout<<all<<endl;
cout<<fixed<<setprecision(3)<<ave<<endl;
}
};
int main()
{
string name;
string id;
double scoreCpp, scoreEng, scoreMath;
cin>>name>>id>>scoreCpp>>scoreEng>>scoreMath;
Student a{name,id,scoreCpp,scoreEng,scoreMath};
a.calAndDisp();
return 0;
}