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