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