#include <bits/stdc++.h>
using namespace std;
int main()
{
int x,y,z,a;
float b;
cin>>x>>y>>z;
a=x+y+z;
b=a/3.0;
cout<<a<<endl;
printf("%.1f",b);

	return 0;
}

/**************************************************************
	Problem: 1602
	User: wqc123
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/