#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	float h,p;
	cin>>a>>b>>c;
	h=a+b+c;
	p=h/3;
	cout<<h<<endl<<fixed<<setprecision(1)<<p;
} 
/**************************************************************
	Problem: 1602
	User: huxuanchen
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/