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