#include<bits/stdc++.h>
using namespace std;
int main()
{int x,y,z,a;
float k;
cin>>x>>y>>z;   
a=x+y+z;
k=a/3.0;
cout<<a<<endl;
printf("%.1f",k);
	return 0;
}
/**************************************************************
	Problem: 1602
	User: lyy002
	Language: C++
	Result: Accepted
	Time:7 ms
	Memory:2072 kb
****************************************************************/