#include<bits/stdc++.h>
using namespace std;
int main(){
	int y,z,h;
	float p,x;
	cin>>x>>y>>z;
	h=x+y+z;
	p=(x+y+z)/3*1.0;
	cout<<h<<endl;
	printf("%.1f",p);
}
/**************************************************************
	Problem: 1602
	User: toughuatao1
	Language: C
	Result: Compile Error
****************************************************************/